/* ==========================================================================
   Bonaventure Portfolio — bv-pricing.css
   Pricing table widget styles. Flush Nexcess Edge CDN after updating.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --bvp-gold:      #DCB064;
  --bvp-charcoal:  #26262D;
  --bvp-dark:      #1e1e24;
  --bvp-white:     #ffffff;
  --bvp-text:      #333238;
  --bvp-muted:     #777;
  --bvp-serif:     "scotch-text", "Playfair Display", Georgia, serif;
  --bvp-sans:      "rival-sans",  "Jost", system-ui, sans-serif;
  --bvp-shadow:    0 8px 40px rgba(0,0,0,.10);
  --bvp-shadow-lg: 0 20px 60px rgba(0,0,0,.16);
  --bvp-transition:0.25s ease;
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.bvp-wrap {
  width: 100%;
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.bvp-grid {
  display:     grid;
  gap:         28px;
  align-items: start;
}

.bvp-cols-1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.bvp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bvp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bvp-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Plan card ────────────────────────────────────────────────────────────── */
.bvp-card {
  background:    var(--bvp-white);
  border-radius: 10px;
  overflow:      hidden;
  box-shadow:    var(--bvp-shadow);
  position:      relative;
  transition:    transform    var(--bvp-transition),
                 box-shadow   var(--bvp-transition);
}

.bvp-card:hover {
  transform:  translateY(-6px);
  box-shadow: var(--bvp-shadow-lg);
}

/* Featured card */
.bvp-card--featured {
  transform:  scale(1.04);
  box-shadow: 0 24px 64px rgba(220,176,100,.22);
  border:     2px solid var(--bvp-gold);
  /* Ensure featured card is above its siblings */
  z-index:    1;
}

.bvp-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.bvp-badge {
  position:       absolute;
  top:            16px;
  right:          16px;
  background:     var(--bvp-gold);
  color:          var(--bvp-charcoal);
  font-family:    var(--bvp-sans);
  font-size:      9px;
  font-weight:    700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding:        4px 10px;
  border-radius:  20px;
  z-index:        2;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.bvp-header {
  background: var(--bvp-charcoal);
  padding:    32px 28px 28px;
  text-align: center;
  /* Subtle diagonal texture */
  position:   relative;
  overflow:   hidden;
}

.bvp-header::before {
  content:        '';
  position:       absolute;
  inset:          0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 60px,
      rgba(220,176,100,.025) 60px,
      rgba(220,176,100,.025) 61px
    );
  pointer-events: none;
}

.bvp-name {
  font-family:    var(--bvp-serif);
  font-size:      26px;
  font-weight:    600;
  color:          var(--bvp-white);
  letter-spacing: .5px;
  margin-bottom:  6px;
  position:       relative;
  z-index:        1;
}

.bvp-tagline {
  font-family: var(--bvp-sans);
  font-size:   14px;
  font-weight: 300;
  font-style:  italic;
  color:       rgba(255,255,255,.5);
  margin-bottom:22px;
  position:    relative;
  z-index:     1;
}

.bvp-price {
  display:         flex;
  align-items:     flex-start;
  justify-content: center;
  gap:             4px;
  position:        relative;
  z-index:         1;
}

.bvp-currency {
  font-family: var(--bvp-sans);
  font-size:   22px;
  font-weight: 400;
  color:       var(--bvp-gold);
  margin-top:  6px;
  line-height: 1;
}

.bvp-amount {
  font-family:  var(--bvp-serif);
  font-size:    52px;
  font-weight:  700;
  color:        var(--bvp-gold);
  line-height:  1;
}

.bvp-period {
  font-family:  var(--bvp-sans);
  font-size:    13px;
  font-weight:  400;
  color:        rgba(255,255,255,.4);
  align-self:   flex-end;
  padding-bottom: 8px;
  margin-left:  2px;
}

/* ── Feature list ─────────────────────────────────────────────────────────── */
.bvp-body {
  padding: 28px 28px 0;
}

.bvp-feature {
  display:       flex;
  align-items:   flex-start;
  gap:           12px;
  padding:       10px 0;
  border-bottom: 1px solid #f0ece4;
  line-height:   1.5;
}

.bvp-feature:last-child {
  border-bottom: none;
}

.bvp-chk {
  flex-shrink:  0;
  margin-top:   2px;
  font-size:    16px;
  font-weight:  700;
  line-height:  1;
}

.bvp-chk--yes { color: var(--bvp-gold); }
.bvp-chk--no  { color: #ccc; }

.bvp-feature-text {
  display:        flex;
  flex-direction: column;
  gap:            3px;
}

.bvp-feature-title {
  font-family: var(--bvp-sans);
  font-size:   13px;
  font-weight: 600;
  color:       var(--bvp-charcoal);
  display:     block;
}

.bvp-feature-desc {
  font-family: var(--bvp-sans);
  font-size:   12px;
  color:       var(--bvp-muted);
  display:     block;
  line-height: 1.5;
}

/* ── CTA button ───────────────────────────────────────────────────────────── */
.bvp-cta {
  padding: 24px 28px 28px;
}

.bvp-cta-btn {
  display:        block;
  width:          100%;
  text-align:     center;
  box-sizing:     border-box;
  font-family:    var(--bvp-sans);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration:none;
  padding:        14px 0;
  border:         1.5px solid var(--bvp-gold);
  border-radius:  3px;
  color:          var(--bvp-gold);
  background:     transparent;
  transition:     background    var(--bvp-transition),
                  color         var(--bvp-transition),
                  border-color  var(--bvp-transition),
                  transform     var(--bvp-transition);
}

.bvp-cta-btn:hover {
  background: var(--bvp-gold);
  color:      var(--bvp-charcoal);
  transform:  translateY(-1px);
}

/* Featured card CTA — filled by default */
.bvp-cta-btn--featured {
  background:   var(--bvp-gold);
  color:        var(--bvp-charcoal);
  border-color: var(--bvp-gold);
}

.bvp-cta-btn--featured:hover {
  background: #e8c882;
  border-color:#e8c882;
  color:      var(--bvp-charcoal);
}

/* ── Fine print ───────────────────────────────────────────────────────────── */
.bvp-fine-print {
  text-align:  center;
  font-family: var(--bvp-sans);
  font-size:   13px;
  color:       var(--bvp-muted);
  margin-top:  32px;
  line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bvp-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .bvp-cols-3 { grid-template-columns: repeat(2, 1fr); }

  /* Remove scale at tablet so cards stay aligned in 2-col layout */
  .bvp-card--featured              { transform: scale(1); }
  .bvp-card--featured:hover        { transform: translateY(-6px); }
}

@media (max-width: 640px) {
  .bvp-cols-2,
  .bvp-cols-3,
  .bvp-cols-4 {
    grid-template-columns: 1fr;
    max-width:    420px;
    margin-left:  auto;
    margin-right: auto;
  }

  /* Scale must also be removed on phones (640px rule fires after 960px reset
     but explicit removal prevents specificity surprises). */
  .bvp-card--featured              { transform: none; }
  .bvp-card--featured:hover        { transform: translateY(-6px); }

  /* Scale down the large price number on narrow screens */
  .bvp-amount   { font-size: clamp(36px, 12vw, 52px); }
  .bvp-currency { font-size: clamp(16px, 5vw,  22px); margin-top: 4px; }

  /* Tighten card internals on phones */
  .bvp-header { padding: 24px 20px 20px; }
  .bvp-name   { font-size: clamp(20px, 6vw, 26px); }
  .bvp-body   { padding: 20px 20px 0; }
  .bvp-cta    { padding: 18px 20px 22px; }
  .bvp-badge  { top: 12px; right: 12px; }
}
