/* =========================================================
   BuildingPlans.com — site.css  v2.0.0
   Design system: navy / blue / white / gold
   ========================================================= */

/* ---- Custom properties ---------------------------------- */
:root {
  --bp-navy:      #0f172a;
  --bp-ink:       #1e293b;
  --bp-muted:     #64748b;
  --bp-blue:      #2563eb;
  --bp-blue-dark: #1d4ed8;
  --bp-gold:      #d97706;
  --bp-gold-dark: #b45309;
  --bp-white:     #ffffff;
  --bp-surface:   #f8fafc;
  --bp-border:    rgba(37, 99, 235, 0.14);
  --bp-success:   #059669;
  --bp-shadow:    0 20px 60px rgba(15, 23, 42, 0.10);
  --bp-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.07);
  --bp-radius-xl: 24px;
  --bp-radius-lg: 16px;
  --bp-radius-md: 10px;
  --bp-max:       1180px;
  --bp-font:      Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- Base ------------------------------------------------ */
html { scroll-behavior: smooth; }

.bp-site {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    var(--bp-surface);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--bp-ink);
  font-family: var(--bp-font);
  line-height: 1.6;
}

.bp-site *,
.bp-site *::before,
.bp-site *::after { box-sizing: border-box; }

.bp-site img { max-width: 100%; height: auto; }

.bp-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bp-navy);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.bp-skip-link:focus { left: 12px; }

/* =========================================================
   HEADER
   ========================================================= */

.bp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--bp-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bp-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.bp-header-brand { flex: 0 0 auto; }

.bp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* PNG header logo */
.bp-logo-img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}

/* WordPress custom logo (uploaded via Customizer) */
.bp-header-brand .custom-logo {
  display: block;
  height: 48px;
  width: auto;
}

/* Primary nav */
.bp-primary-nav { margin-left: auto; }

.bp-primary-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-menu-item { position: relative; }

.bp-primary-menu > .bp-menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--bp-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s, color 0.14s;
}

.bp-primary-menu > .bp-menu-item > a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--bp-blue);
}

.bp-dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.18s;
}

/* Dropdown panel */
.bp-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 70;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: #fff;
  box-shadow: var(--bp-shadow);
}

.bp-dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--bp-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.bp-dropdown a:hover {
  background: rgba(37, 99, 235, 0.07);
  color: var(--bp-blue);
}

/* Desktop: show dropdown on hover */
@media (min-width: 861px) {
  .bp-has-dropdown:hover > .bp-dropdown,
  .bp-has-dropdown:focus-within > .bp-dropdown {
    display: grid;
    gap: 2px;
  }

  .bp-has-dropdown:hover .bp-dropdown-arrow {
    transform: rotate(180deg);
  }

  /*
   * Hover bridge: fills the 6px gap between the nav link bottom and the
   * dropdown panel top. Without this, the mouse briefly leaves the parent
   * <li> while crossing the gap, collapsing the dropdown before it is reached.
   * The ::before sits above the visible panel and keeps :hover alive.
   */
  .bp-has-dropdown > .bp-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
  }
}

/* Header actions */
.bp-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.bp-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--bp-ink);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.bp-cart-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--bp-blue);
}

.bp-cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bp-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Mobile hamburger */
.bp-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.bp-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--bp-ink);
}

/* =========================================================
   AD SLOTS  (preserved for AdSense; suppressed by PHP guard)
   ========================================================= */

.bp-ad-slot {
  position: relative;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  background: #fff;
  overflow: hidden;
}

.bp-ad-label {
  position: absolute;
  top: 5px;
  left: 8px;
  z-index: 1;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bp-ad-slot-top,
.bp-ad-slot-bottom {
  max-width: var(--bp-max);
  min-height: 90px;
  margin: 12px auto;
  padding: 0 24px;
}

.bp-ad-slot-inline {
  min-height: 120px;
  margin: 24px 0;
}

.bp-ad-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 16px;
  border-style: dashed;
  color: var(--bp-muted);
  text-align: center;
}

.bp-ad-placeholder-text {
  max-width: 240px;
  font-size: 12px;
}

.bp-ad-slot .adsbygoogle { min-height: inherit; }

/* =========================================================
   CONTENT LAYOUT WRAPPER
   (replaces old 3-column ad-rail grid)
   ========================================================= */

.bp-content-wrap {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: var(--bp-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, color 0.14s;
  white-space: nowrap;
}

.bp-button-primary {
  background: var(--bp-gold);
  color: #fff;
  border-color: var(--bp-gold);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.26);
}

.bp-button-primary:hover {
  background: var(--bp-gold-dark);
  border-color: var(--bp-gold-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.34);
}

.bp-button-outline {
  background: transparent;
  color: var(--bp-navy);
  border-color: rgba(15, 23, 42, 0.28);
}

.bp-button-outline:hover {
  border-color: var(--bp-navy);
  background: rgba(15, 23, 42, 0.04);
  color: var(--bp-navy);
}

.bp-button-blue {
  background: var(--bp-blue);
  color: #fff;
  border-color: var(--bp-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.bp-button-blue:hover {
  background: var(--bp-blue-dark);
  border-color: var(--bp-blue-dark);
  color: #fff;
}

/* Secondary alias used by interior pages */
.bp-button-secondary {
  background: transparent;
  color: var(--bp-blue);
  border-color: rgba(37, 99, 235, 0.35);
}

.bp-button-secondary:hover {
  border-color: var(--bp-blue);
  background: rgba(37, 99, 235, 0.05);
  color: var(--bp-blue-dark);
}

.bp-button-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* =========================================================
   EYEBROW / KICKER
   ========================================================= */

.bp-eyebrow,
.bp-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--bp-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */

.bp-section { padding: 72px 0; }

.bp-section-inner {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 0 24px;
}

.bp-section-header { margin-bottom: 40px; }

.bp-section-header h2 {
  margin: 0 0 12px;
  color: var(--bp-navy);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.bp-section-header p {
  max-width: 680px;
  margin: 0;
  color: var(--bp-muted);
  font-size: clamp(15px, 1.6vw, 17px);
}

.bp-section-cta {
  margin-top: 36px;
  text-align: center;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.bp-hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1a3252 100%);
  overflow: hidden;
  padding: 72px 0 84px;
}

/* Blueprint grid overlay */
.bp-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.bp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 52px;
  align-items: center;
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Eyebrow on dark bg */
.bp-hero-text .bp-eyebrow {
  color: rgba(147, 197, 253, 0.9);
}

.bp-hero-h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

/* Hero lede — light version (dark bg) */
.bp-hero-section .bp-hero-lede {
  max-width: 580px;
  margin: 0 0 32px;
  color: rgba(203, 213, 225, 0.88);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
}

.bp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Outline button on dark bg */
.bp-hero-actions .bp-button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.bp-hero-actions .bp-button-outline:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* Blueprint decoration card */
.bp-hero-blueprint {
  display: flex;
  justify-content: center;
}

.bp-blueprint-card {
  width: 100%;
  max-width: 380px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--bp-radius-xl);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.bp-blueprint-label {
  margin-bottom: 14px;
  color: rgba(147, 197, 253, 0.75);
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bp-blueprint-svg {
  display: block;
  width: 100%;
  height: auto;
  color: rgba(147, 197, 253, 0.65);
}

.bp-blueprint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bp-blueprint-tags span {
  padding: 4px 10px;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 999px;
  color: rgba(147, 197, 253, 0.82);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   SEARCH SECTION
   ========================================================= */

.bp-search-section {
  background: var(--bp-white);
  padding: 64px 0;
}

.bp-search-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl);
  background: #fff;
  box-shadow: var(--bp-shadow);
}

.bp-search-card-header { margin-bottom: 28px; }

.bp-search-card-header h2 {
  margin: 0 0 10px;
  color: var(--bp-navy);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bp-search-card-header p {
  margin: 0;
  color: var(--bp-muted);
  max-width: 680px;
}

/* Search fields grid */
.bp-search-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-field label {
  color: var(--bp-ink);
  font-size: 13px;
  font-weight: 600;
}

.bp-field select,
.bp-field input {
  height: 44px;
  width: 100%;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.bp-field select:focus,
.bp-field input:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.bp-field-wide { grid-column: span 2; }

.bp-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bp-search-browse-link {
  color: var(--bp-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.12s;
}

.bp-search-browse-link:hover {
  color: var(--bp-blue);
  text-decoration: underline;
}

/* =========================================================
   PLAN TYPE TILES
   ========================================================= */

.bp-types-section { background: var(--bp-surface); }

.bp-plan-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bp-plan-type-tile {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1.5px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}

.bp-plan-type-tile:hover {
  border-color: var(--bp-blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.11);
  transform: translateY(-2px);
}

.bp-tile-title {
  margin: 0 0 10px;
  color: var(--bp-navy);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bp-tile-desc {
  flex: 1;
  margin: 0 0 16px;
  color: var(--bp-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bp-tile-cta {
  color: var(--bp-blue);
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.bp-how-section { background: var(--bp-white); }

.bp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bp-step {
  padding: 28px;
  border: 1.5px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
}

.bp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bp-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.bp-step h3 {
  margin: 0 0 10px;
  color: var(--bp-navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bp-step p {
  margin: 0;
  color: var(--bp-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   MODIFICATIONS TEASER
   ========================================================= */

.bp-mod-section { background: var(--bp-surface); }

.bp-mod-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--bp-radius-xl);
  background: #fff;
  box-shadow: var(--bp-shadow);
}

.bp-mod-card-text h2 {
  margin: 0 0 16px;
  color: var(--bp-navy);
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.bp-mod-card-text p {
  margin: 0 0 12px;
  color: var(--bp-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
}

.bp-mod-card-text p:last-child { margin-bottom: 0; }

.bp-mod-card-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.bp-mod-note {
  margin: 0;
  color: var(--bp-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   TRUST SECTION
   ========================================================= */

.bp-trust-section {
  background: var(--bp-navy);
  padding: 72px 0;
}

.bp-trust-headline {
  margin: 0 0 44px;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.04em;
  text-align: center;
}

.bp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bp-trust-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--bp-radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.bp-trust-marker {
  width: 28px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--bp-blue);
}

.bp-trust-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bp-trust-item p {
  margin: 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   FEATURED PLANS
   ========================================================= */

.bp-featured-section { background: var(--bp-white); }

.bp-plan-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bp-plan-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}

.bp-plan-card:hover {
  border-color: var(--bp-blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.11);
  transform: translateY(-2px);
}

.bp-plan-card-img {
  aspect-ratio: 4 / 3;
  background: var(--bp-surface);
  overflow: hidden;
}

.bp-plan-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-plan-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: rgba(37, 99, 235, 0.28);
}

.bp-plan-card-img-placeholder svg {
  width: 75%;
  height: auto;
}

.bp-plan-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.bp-plan-card-title {
  margin: 0 0 6px;
  color: var(--bp-navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.bp-plan-card-price {
  margin: 0 0 auto;
  padding-bottom: 10px;
  color: var(--bp-navy);
  font-size: 16px;
  font-weight: 800;
}

.bp-plan-card-cta {
  margin-top: 10px;
  color: var(--bp-blue);
  font-size: 13px;
  font-weight: 600;
}

/* WooCommerce price inherits */
.bp-plan-card-price .woocommerce-Price-amount { color: var(--bp-navy); }

/* =========================================================
   FOOTER
   ========================================================= */

.bp-site-footer {
  background: var(--bp-navy);
  color: rgba(255, 255, 255, 0.84);
}

.bp-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 52px 24px 40px;
}

.bp-footer-logo {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
}

.bp-footer-brand-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bp-footer-tld {
  color: var(--bp-blue);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bp-footer-tagline {
  margin: 0 0 16px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.bp-footer-copy {
  margin: 0;
  color: rgba(203, 213, 225, 0.5);
  font-size: 13px;
}

.bp-footer-col-title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.bp-footer-links a {
  color: rgba(203, 213, 225, 0.82);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.12s;
}

.bp-footer-links a:hover { color: #fff; }

.bp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-footer-disclaimer {
  max-width: var(--bp-max);
  margin: 0 auto;
  padding: 20px 24px;
  color: rgba(203, 213, 225, 0.42);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
   INTERIOR PAGE COMPONENTS
   (backward-compatible with existing page-*.php templates)
   ========================================================= */

/* Page hero */
.bp-page-hero { padding: 52px 0 28px; }

.bp-page-hero h1 {
  margin: 8px 0 14px;
  color: var(--bp-navy);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* Lede (interior pages light bg) */
.bp-page-lede,
.bp-hero-lede {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--bp-muted);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.65;
}

/* Main section padding (used in interior page templates) */
.bp-main-section { padding: 44px 0; }

/* Section cards */
.bp-section-card,
.bp-page-card,
.bp-wizard-shell,
.bp-search-panel {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl);
  background: #fff;
  box-shadow: var(--bp-shadow-sm);
}

.bp-section-card { padding: clamp(24px, 4vw, 40px); }

.bp-page-card,
.bp-search-panel {
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 24px;
}

.bp-section-card h2,
.bp-page-card h2,
.bp-search-panel h2 {
  margin: 4px 0 14px;
  color: var(--bp-navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.bp-section-card p,
.bp-page-card p,
.bp-search-panel p {
  max-width: 720px;
  color: var(--bp-muted);
}

/* Two-column layout */
.bp-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: start;
}

/* Process grid (How It Works interior pages) */
.bp-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bp-process-card,
.bp-feature-card,
.bp-faq-item,
.bp-contact-card {
  padding: 22px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
}

.bp-process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bp-blue);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.bp-process-card h3,
.bp-feature-card h3,
.bp-faq-item h3,
.bp-contact-card h3 {
  margin: 14px 0 8px;
  color: var(--bp-navy);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.bp-process-card p,
.bp-feature-card p,
.bp-faq-item p,
.bp-contact-card p {
  margin: 0;
  color: var(--bp-muted);
  font-size: 14px;
}

/* Card grids */
.bp-card-grid { display: grid; gap: 16px; }
.bp-card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Status pills / labels */
.bp-status-pill,
.bp-card-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--bp-success);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Wizard shell */
.bp-wizard-shell { padding: clamp(18px, 3vw, 28px); overflow: visible; }

.bp-wizard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.bp-wizard-intro h2 {
  margin: 4px 0 8px;
  color: var(--bp-navy);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.bp-wizard-intro p {
  margin: 0;
  max-width: 760px;
  color: var(--bp-muted);
}

.bp-wizard-badge {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  background: var(--bp-surface);
  color: var(--bp-blue);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bp-plugin-missing {
  padding: 28px;
  border: 1px dashed var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  color: var(--bp-muted);
}

/* Text links */
.bp-text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--bp-blue);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.12s;
}

.bp-text-link:hover {
  color: var(--bp-blue-dark);
  text-decoration: underline;
}

/* Disclaimer */
.bp-disclaimer-box {
  padding: 20px 22px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-surface);
  color: var(--bp-muted);
  font-size: 14px;
}

.bp-disclaimer-box strong { color: var(--bp-ink); }

/* Lists */
.bp-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bp-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-muted);
  font-size: 15px;
}

.bp-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bp-blue);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--bp-blue);
}

/* Contact page */
.bp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bp-contact-form { display: grid; gap: 14px; }

.bp-contact-form label {
  display: grid;
  gap: 6px;
  color: var(--bp-ink);
  font-weight: 600;
  font-size: 14px;
}

.bp-contact-form input,
.bp-contact-form select,
.bp-contact-form textarea {
  width: 100%;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.14s;
}

.bp-contact-form input:focus,
.bp-contact-form select:focus,
.bp-contact-form textarea:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.bp-contact-form textarea { min-height: 140px; resize: vertical; }

/* Category landing pages */
.bp-category-landing { display: grid; gap: 24px; }

.bp-category-lede {
  max-width: 860px;
  margin: 0;
  color: var(--bp-muted);
  font-size: clamp(16px, 1.7vw, 18px);
}

.bp-feature-panel,
.bp-cta-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  background: #fff;
}

.bp-feature-panel h2,
.bp-cta-card h2 {
  margin: 0 0 12px;
  color: var(--bp-navy);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bp-feature-panel p,
.bp-cta-card p {
  max-width: 860px;
  margin: 0;
  color: var(--bp-muted);
}

.bp-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bp-feature-list li {
  position: relative;
  padding: 12px 12px 12px 34px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  background: var(--bp-surface);
  color: var(--bp-muted);
  font-size: 14px;
}

.bp-feature-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bp-blue);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--bp-blue);
}

.bp-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.bp-category-card-grid .bp-plan-card { min-height: 200px; }

/* Interior page simple search form (input + button inline) */
.bp-search-panel .bp-search-form,
.bp-page-card .bp-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 22px 0 0;
}

.bp-search-form input[type="search"] {
  min-height: 48px;
  width: 100%;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.14s;
}

.bp-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet ≤ 1024px ------------------------------------ */
@media (max-width: 1024px) {
  .bp-plan-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bp-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-plan-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* ---- Large mobile / small tablet ≤ 860px --------------- */
@media (max-width: 860px) {
  /* Show hamburger, hide nav */
  .bp-menu-toggle { display: inline-flex; }

  .bp-primary-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    margin: 0;
    padding: 12px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    background: #fff;
    box-shadow: var(--bp-shadow);
    z-index: 60;
  }

  .bp-primary-nav.is-open { display: block; }

  .bp-primary-menu {
    flex-direction: column;
    gap: 4px;
  }

  .bp-primary-menu > .bp-menu-item > a {
    width: 100%;
    border-radius: 8px;
  }

  /* Inline dropdown on mobile */
  .bp-has-dropdown > .bp-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 4px 0 4px 16px;
    padding: 4px;
    border: 0;
    border-left: 2px solid var(--bp-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bp-has-dropdown.is-open > .bp-dropdown { display: grid; gap: 0; }
  .bp-has-dropdown:hover > .bp-dropdown { display: none; } /* disable CSS hover on mobile */
  .bp-has-dropdown.is-open > .bp-dropdown { display: grid; }

  /* Hero stacks */
  .bp-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bp-blueprint-card { max-width: 100%; }

  /* Mod card stacks */
  .bp-mod-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bp-mod-card-actions { min-width: 0; }

  /* Tile grid */
  .bp-plan-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Search fields */
  .bp-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-field-wide { grid-column: span 1; }

  /* Steps */
  .bp-steps-grid { grid-template-columns: 1fr; }

  /* Interior page layouts */
  .bp-process-grid,
  .bp-card-grid-3 { grid-template-columns: 1fr; }

  .bp-two-column,
  .bp-contact-grid,
  .bp-wizard-intro { grid-template-columns: 1fr; }

  .bp-cta-card { grid-template-columns: 1fr; }
}

/* ---- Mobile ≤ 600px ------------------------------------- */
@media (max-width: 600px) {
  .bp-section { padding: 48px 0; }

  .bp-trust-section { padding: 48px 0; }

  .bp-hero-section { padding: 48px 0 56px; }

  .bp-header-inner { padding: 0 16px; height: 64px; }

  .bp-logo-img { width: 205px; }

  .bp-section-inner,
  .bp-content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bp-ad-slot-top,
  .bp-ad-slot-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bp-footer-inner {
    grid-template-columns: 1fr;
    padding: 36px 16px 28px;
  }

  .bp-footer-disclaimer { padding-left: 16px; padding-right: 16px; }

  .bp-plan-type-grid { grid-template-columns: 1fr; }

  .bp-trust-grid { grid-template-columns: 1fr; }

  .bp-plan-card-grid { grid-template-columns: 1fr; }

  .bp-search-fields { grid-template-columns: 1fr; }

  .bp-feature-list { grid-template-columns: 1fr; }

  .bp-hero-h1 { font-size: clamp(30px, 10vw, 44px); }

  .bp-search-actions { flex-direction: column; align-items: stretch; }

  .bp-search-actions .bp-button { width: 100%; justify-content: center; }
}

/* =========================================================
   MODIFICATIONS WIZARD PAGE
   Full-width workspace — no ad rails, no content-wrap card.
   Applied via page-modifications-wizard.php template.
   ========================================================= */

.bp-wizard-page {
  background: var(--bp-surface);
  min-height: 60vh;
}

/* Override card-style defaults that .bp-wizard-shell inherits
   from the interior-page component styles above */
.bp-wizard-page .bp-wizard-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.bp-wizard-page-header {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bp-border);
}

.bp-wizard-page-title {
  margin: 8px 0 0;
  color: var(--bp-navy);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bp-wizard-content {
  width: 100%;
}

/* Ensure any iframes or plugin containers inside the wizard
   take the full available width */
.bp-wizard-content iframe,
.bp-wizard-content .apmw-wizard-wrap,
.bp-wizard-content .bp-wizard-shell {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 600px) {
  .bp-wizard-page .bp-wizard-shell {
    padding: 24px 16px 48px;
  }
}

/* ── Plan context block ─────────────────────────────────────────────── */

.bp-wizard-context { margin-bottom: 20px; }

/* Found-product context strip */
.bp-wizard-context-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  flex-wrap: wrap;
}

/* Square thumbnail or icon placeholder */
.bp-wizard-context-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-wizard-context-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text block */
.bp-wizard-context-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.bp-wizard-context-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-muted);
}

.bp-wizard-context-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-wizard-context-sku {
  font-size: 12px;
  color: var(--bp-muted);
}

/* Back link */
.bp-wizard-context-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-blue);
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.bp-wizard-context-back:hover { text-decoration: underline; }

/* Warning notice when product lookup fails but plan_id is present */
.bp-wizard-context-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--bp-radius-md);
  font-size: 13px;
  color: #78350f;
  flex-wrap: wrap;
}
.bp-wizard-context-notice strong { color: #451a03; }

/* ── No plan_id state ───────────────────────────────────────────────── */

.bp-wizard-no-plan {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl);
  box-shadow: var(--bp-shadow-sm);
}

.bp-wizard-no-plan-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--bp-navy);
  opacity: 0.5;
}

.bp-wizard-no-plan h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bp-navy);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.bp-wizard-no-plan p {
  font-size: 15px;
  color: var(--bp-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ── Plugin unavailable error ───────────────────────────────────────── */

.bp-wizard-unavailable {
  padding: 24px;
  background: #fff8f0;
  border: 1px solid #fcd34d;
  border-radius: var(--bp-radius-md);
}

.bp-wizard-unavailable strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-navy);
  margin-bottom: 8px;
}

.bp-wizard-unavailable p {
  font-size: 14px;
  color: var(--bp-muted);
  margin: 0;
}

/* ==========================================================================
   Browse Plans page
   ========================================================================== */

/* Active filter chips */
.bp-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 20px;
}

.bp-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--bp-ink);
}

.bp-chip-clear {
  color: var(--bp-muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  margin-left: 2px;
}
.bp-chip-clear:hover { color: var(--bp-blue); }

.bp-chip-clear-all {
  font-size: 13px;
  color: var(--bp-muted);
  text-decoration: underline;
  margin-left: 4px;
}
.bp-chip-clear-all:hover { color: var(--bp-blue); }

/* Refine search collapsible */
.bp-refine-section { margin-bottom: 28px; }

.bp-refine-details { border: none; }

.bp-refine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-blue);
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
}
.bp-refine-toggle::-webkit-details-marker { display: none; }
.bp-refine-toggle::after {
  content: '+';
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s;
}
.bp-refine-details[open] .bp-refine-toggle::after { content: '−'; }

.bp-refine-form-wrap {
  padding: 20px 0 0;
}

.bp-refine-form .bp-search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* Catalog grid */
.bp-catalog-section { padding: 0; background: transparent; box-shadow: none; border: none; }

.bp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bp-plan-card {
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  overflow: hidden;
  box-shadow: var(--bp-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.bp-plan-card:hover { box-shadow: var(--bp-shadow); transform: translateY(-2px); }

.bp-plan-card-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bp-surface); }
.bp-plan-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.bp-plan-card:hover .bp-plan-thumb-img { transform: scale(1.03); }

.bp-plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}

.bp-plan-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-navy);
  margin: 0;
  line-height: 1.3;
}
.bp-plan-card-title a { color: inherit; text-decoration: none; }
.bp-plan-card-title a:hover { color: var(--bp-blue); }

.bp-plan-card-price { font-size: 17px; font-weight: 700; color: var(--bp-blue); }

.bp-plan-card-cta { margin-top: auto; align-self: flex-start; font-size: 13px; padding: 7px 16px; }

/* Empty state */
.bp-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--bp-muted);
}
.bp-empty-icon { margin: 0 auto 20px; opacity: 0.6; }
.bp-empty-state h2 { font-size: 20px; font-weight: 700; color: var(--bp-ink); margin: 0 0 10px; }
.bp-empty-state p { font-size: 15px; max-width: 480px; margin: 0 auto; line-height: 1.6; }
.bp-empty-state a { color: var(--bp-blue); }

@media (max-width: 900px) {
  .bp-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 600px) {
  .bp-catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .bp-refine-form .bp-search-fields { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Plan Types page
   ========================================================================== */

.bp-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bp-type-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 20px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--bp-shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}
.bp-type-tile:hover {
  box-shadow: var(--bp-shadow);
  transform: translateY(-2px);
  border-color: var(--bp-blue);
}

.bp-type-icon { color: var(--bp-blue); }

.bp-type-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--bp-navy);
  line-height: 1.2;
}

.bp-type-desc {
  font-size: 13px;
  color: var(--bp-muted);
}

@media (max-width: 900px) {
  .bp-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .bp-type-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Find My Plan page
   ========================================================================== */

.bp-find-form-section .bp-find-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.bp-find-form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bp-find-hint {
  font-size: 14px;
  color: var(--bp-muted);
}
.bp-find-hint a { color: var(--bp-blue); }

.bp-button-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ==========================================================================
   Modifications page
   ========================================================================== */

.bp-mods-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}

.bp-mods-list li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--bp-ink);
  line-height: 1.5;
}
.bp-mods-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--bp-gold);
  border-radius: 50%;
}

.bp-mods-note {
  font-size: 14px;
  color: var(--bp-muted);
  border-top: 1px solid var(--bp-border);
  padding-top: 16px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .bp-mods-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single product / plan detail page  (single-product.php)
   ========================================================================== */

/* Page shell */
.bp-product-page { background: var(--bp-surface); }
.bp-product-page .bp-content-wrap { padding-top: 32px; padding-bottom: 64px; }

/* Breadcrumb */
.bp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--bp-muted);
  margin-bottom: 28px;
}
.bp-breadcrumb a { color: var(--bp-blue); text-decoration: none; }
.bp-breadcrumb a:hover { text-decoration: underline; }
.bp-breadcrumb-sep { opacity: 0.5; }
.bp-breadcrumb-current { color: var(--bp-ink); font-weight: 500; }

/* Two-column layout */
.bp-product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

/* Gallery column */
.bp-product-img-wrap img.bp-product-main-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--bp-radius-lg);
  box-shadow: var(--bp-shadow);
}

/* Blueprint placeholder panel */
.bp-product-img-placeholder {
  border-radius: var(--bp-radius-lg);
  overflow: hidden;
  background: var(--bp-navy);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-placeholder-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Purchase panel — sticky on desktop */
.bp-product-panel {
  position: sticky;
  top: 24px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-xl);
  padding: 28px 26px 26px;
  box-shadow: var(--bp-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Badges */
.bp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
}
.bp-badge-cad  { background: rgba(37,99,235,0.09);  color: #1d4ed8; border: 1px solid rgba(37,99,235,0.2); }
.bp-badge-dxf  { background: rgba(15,23,42,0.07);   color: var(--bp-navy); border: 1px solid rgba(15,23,42,0.14); }
.bp-badge-mod  { background: rgba(217,119,6,0.09);  color: #92400e; border: 1px solid rgba(217,119,6,0.2); }

/* Plan title in purchase panel */
.bp-product-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--bp-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

/* Price */
.bp-product-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--bp-blue);
  line-height: 1;
}
/* WooCommerce wraps price in a <bdi> inside .woocommerce-Price-amount — inherit */
.bp-product-price .woocommerce-Price-amount,
.bp-product-price .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* SKU and meta rows */
.bp-product-meta-row {
  font-size: 13px;
  color: var(--bp-muted);
}
.bp-product-meta-row span { color: var(--bp-ink); }

/* Short description in panel */
.bp-product-short-desc {
  font-size: 14px;
  color: var(--bp-ink);
  line-height: 1.6;
  border-top: 1px solid var(--bp-border);
  padding-top: 14px;
}
.bp-product-short-desc p { margin: 0 0 8px; }
.bp-product-short-desc p:last-child { margin-bottom: 0; }

/* Buy button — full width in panel */
.bp-buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--bp-radius-md);
}

/* Modify button — full width, outlined */
.bp-modify-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: var(--bp-radius-md);
}

/* Plan ID reference — small label at bottom of panel */
.bp-plan-ref {
  font-size: 12px;
  color: var(--bp-muted);
  padding-top: 4px;
  border-top: 1px solid var(--bp-border);
}

/* Out-of-stock notice */
.bp-out-of-stock {
  font-size: 14px;
  color: var(--bp-muted);
  font-style: italic;
  margin: 0;
}

/* ── Spec / details section ─────────────────────────────────────────── */

.bp-product-details { margin-bottom: 32px; }

.bp-spec-list {
  margin: 0 0 24px;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-md);
  overflow: hidden;
}

.bp-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--bp-border);
}
.bp-spec-row:last-child { border-bottom: none; }

.bp-spec-row dt {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-muted);
  background: var(--bp-surface);
  border-right: 1px solid var(--bp-border);
}

.bp-spec-row dd {
  padding: 11px 16px;
  font-size: 14px;
  color: var(--bp-ink);
  margin: 0;
}
.bp-spec-row dd a { color: var(--bp-blue); text-decoration: none; }
.bp-spec-row dd a:hover { text-decoration: underline; }

.bp-spec-ok      { color: #15803d; font-weight: 600; }
.bp-spec-pending { color: var(--bp-muted); }

/* Full description */
.bp-product-full-desc {
  font-size: 15px;
  color: var(--bp-ink);
  line-height: 1.7;
  border-top: 1px solid var(--bp-border);
  padding-top: 24px;
}
.bp-product-full-desc p { margin: 0 0 14px; }
.bp-product-full-desc p:last-child { margin-bottom: 0; }

/* ── Trust signals ──────────────────────────────────────────────────── */

.bp-product-trust {
  margin-bottom: 32px;
  padding: 26px 28px;
  background: var(--bp-white);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-lg);
}

.bp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bp-trust-icon { flex-shrink: 0; margin-top: 2px; }

.bp-trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-navy);
  margin-bottom: 5px;
}

.bp-trust-item p {
  font-size: 13px;
  color: var(--bp-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Related plans section ──────────────────────────────────────────── */

.bp-related-plans { margin-bottom: 0; }

/* ── Browse page card additions (badges + placeholder thumbnail) ─────── */

.bp-plan-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

/* Placeholder when a product card has no thumbnail */
.bp-card-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--bp-navy);
  text-decoration: none;
}
.bp-card-thumb-placeholder span {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 8px;
}

/* ── Responsive breakpoints for product page ────────────────────────── */

@media (max-width: 860px) {
  .bp-product-layout { grid-template-columns: 1fr; gap: 28px; }
  .bp-product-panel { position: static; }
  .bp-trust-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 600px) {
  .bp-product-page .bp-content-wrap { padding-top: 20px; padding-bottom: 40px; }
  .bp-spec-row { grid-template-columns: 120px 1fr; }
  .bp-spec-row dt, .bp-spec-row dd { padding: 9px 12px; }
  .bp-product-panel { padding: 20px 18px; }
  .bp-product-trust { padding: 18px; }
}
