/* ==========================================================================
   Bonaventure Portfolio — bv-portfolio-single.css  v1.5.0
   Single portfolio item template styles (Phase 2).
   Flush Nexcess Edge CDN after updating.
   ========================================================================== */

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

/* ── Internal containers ──────────────────────────────────────────────────── */
.bvs-container {
  max-width: 1140px;
  margin:    0 auto;
  padding:   0 40px;
}

.bvs-container-narrow {
  max-width: 800px;
  margin:    0 auto;
  padding:   0 40px;
}

/* ── Section labels ───────────────────────────────────────────────────────── */
.bvs-section-label {
  display:        block;
  font-family:    var(--bvs-sans);
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color:          var(--bvs-gold);
  margin-bottom:  16px;
  text-align:     center;
}

/* ── Curve dividers ───────────────────────────────────────────────────────── */
.bvs-curve-divider {
  display:     block;
  line-height: 0;
  overflow:    hidden;
}

.bvs-curve-divider svg {
  display: block;
  width:   100%;
  height:  72px;
}

/*
   Each curve div needs a background matching the DESTINATION section
   so the "uncovered" area of the SVG canvas shows the right color.
   light → dark:  div bg = white  (concave dip in charcoal shape shows white)
   dark → light:  div bg = white  (convex bulge below charcoal shape shows white)
   inside CTA:    div bg = white  (same — CTA section is charcoal, curve entrance matches nav above)
*/
.bvs-curve-into-dark,
.bvs-curve-out-of-dark,
.bvs-curve-into-dark-cta {
  background: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ① MAIN PANEL — two-column: image left, meta right
   ═══════════════════════════════════════════════════════════════════════════ */

.bvs-main-panel {
  background: #ffffff;
  padding:    56px 0 72px;
}

.bvs-two-col {
  display:               grid;
  grid-template-columns: 1fr 400px;
  gap:                   56px;
  align-items:           start;
}

/* Left: featured image */
.bvs-featured-image {
  border-radius: var(--bvs-radius);
  overflow:      hidden;
  box-shadow:    var(--bvs-shadow-lg);
  background:    var(--bvs-slate);
  line-height:   0;
}

.bvs-feat-img {
  width:   100%;
  height:  auto;
  display: block;
}

.bvs-img-placeholder {
  width:        100%;
  aspect-ratio: 4 / 3;
  background:   var(--bvs-slate);
}

/* Gallery strip */
.bvs-gallery-strip  { margin-top: 20px; }

.bvs-gallery-label {
  font-family:    var(--bvs-sans);
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color:          var(--bvs-muted);
  margin-bottom:  10px;
}

.bvs-gallery-thumbs {
  display:   flex;
  flex-wrap: wrap;
  gap:       8px;
}

.bvs-gallery-thumb {
  display:       block;
  width:         88px;
  height:        88px;
  border-radius: 6px;
  overflow:      hidden;
  border:        2px solid transparent;
  transition:    border-color var(--bvs-transition),
                 transform    var(--bvs-transition);
  flex-shrink:   0;
}

.bvs-gallery-thumb:hover {
  border-color: var(--bvs-gold);
  transform:    translateY(-2px);
}

.bvs-gallery-thumb img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

/* Right: sticky meta card */
.bvs-col-meta {
  position: sticky;
  top:      96px;
}

.bvs-meta-card {
  background:    var(--bvs-charcoal);
  border-radius: var(--bvs-radius);
  padding:       36px 32px;
  box-shadow:    var(--bvs-shadow-lg);
  position:      relative;
  overflow:      hidden;
}

.bvs-meta-card::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;
}

.bvs-meta-cats {
  display:       flex;
  flex-wrap:     wrap;
  gap:           6px;
  margin-bottom: 24px;
  position:      relative;
  z-index:       1;
}

.bvs-cat-pill {
  font-family:    var(--bvs-sans);
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:          var(--bvs-gold);
  border:         1.5px solid rgba(220,176,100,.4);
  border-radius:  100px;
  padding:        4px 12px;
}

.bvs-meta-row {
  padding:        14px 0;
  border-bottom:  1px solid rgba(255,255,255,.08);
  display:        flex;
  flex-direction: column;
  gap:            4px;
  position:       relative;
  z-index:        1;
}

.bvs-meta-row:last-of-type   { border-bottom: none; }
.bvs-meta-row--scope .bvs-meta-value { line-height: 1.6; }

.bvs-meta-label {
  font-family:    var(--bvs-sans);
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:          var(--bvs-gold);
}

.bvs-meta-value {
  font-family: var(--bvs-sans);
  font-size:   15px;
  color:       var(--bvs-white);
}

.bvs-meta-cta {
  margin-top: 28px;
  position:   relative;
  z-index:    1;
}

.bvs-btn-outline {
  display:        block;
  font-family:    var(--bvs-sans);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:          var(--bvs-gold);
  border:         1.5px solid var(--bvs-gold);
  border-radius:  3px;
  padding:        13px 28px;
  text-decoration:none;
  text-align:     center;
  box-sizing:     border-box;
  transition:     background var(--bvs-transition),
                  color      var(--bvs-transition),
                  transform  var(--bvs-transition);
}

.bvs-btn-outline:hover {
  background: var(--bvs-gold);
  color:      var(--bvs-charcoal);
  transform:  translateY(-2px);
}

.bvs-back-link {
  display:        inline-flex;
  align-items:    center;
  gap:            6px;
  font-family:    var(--bvs-sans);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color:          var(--bvs-muted);
  text-decoration:none;
  margin-top:     18px;
  transition:     color var(--bvs-transition);
}

.bvs-back-link:hover { color: var(--bvs-gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   ② PROJECT DESCRIPTION
   ═══════════════════════════════════════════════════════════════════════════ */

.bvs-description {
  background: #ffffff;
  padding:    72px 0;
}

.bvs-description .bvs-section-label { margin-bottom: 32px; }

.bvs-description-body {
  font-family: var(--bvs-sans);
  font-size:   clamp(16px, 1.8vw, 18px);
  line-height: 1.85;
  color:       var(--bvs-text);
}

.bvs-description-body p           { margin-bottom: 1.4em; }
.bvs-description-body p:last-child { margin-bottom: 0; }
.bvs-description-body a           { color: var(--bvs-gold); text-decoration: underline; }

.bvs-description-body h2,
.bvs-description-body h3 {
  font-family: var(--bvs-serif);
  font-weight: 400;
  color:       var(--bvs-charcoal);
  margin:      1.5em 0 0.5em;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ④ TESTIMONIAL
   ═══════════════════════════════════════════════════════════════════════════ */

.bvs-testimonial {
  background: var(--bvs-charcoal);
  padding:    80px 0;
}

.bvs-testimonial-inner { text-align: center; }

.bvs-quote-mark {
  font-family:   var(--bvs-serif);
  font-size:     120px;
  line-height:   0.6;
  color:         rgba(220,176,100,.18);
  margin-bottom: 24px;
  display:       block;
  user-select:   none;
}

.bvs-quote-text {
  font-family: var(--bvs-serif);
  font-size:   clamp(18px, 2.5vw, 26px);
  font-style:  italic;
  color:       var(--bvs-white);
  line-height: 1.65;
  max-width:   700px;
  margin:      0 auto 36px;
}

.bvs-testimonial-attribution {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             16px;
}

.bvs-testimonial-avatar {
  width:         56px;
  height:        56px;
  border-radius: 50%;
  object-fit:    cover;
  border:        2px solid rgba(220,176,100,.4);
}

.bvs-testimonial-name-wrap {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            3px;
}

.bvs-testimonial-name  { font-family: var(--bvs-sans); font-size: 15px; font-weight: 600; color: var(--bvs-white); }
.bvs-testimonial-title { font-family: var(--bvs-sans); font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ⑤ PREV / NEXT NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.bvs-navigation {
  background: #ffffff;
  padding:    64px 0;
}

.bvs-nav-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   24px;
}

.bvs-nav-card {
  display:        flex;
  align-items:    stretch;
  text-decoration:none;
  background:     var(--bvs-white);
  border-radius:  var(--bvs-radius);
  border:         1.5px solid rgba(0,0,0,.07);
  overflow:       hidden;
  transition:     border-color var(--bvs-transition),
                  box-shadow   var(--bvs-transition),
                  transform    var(--bvs-transition);
}

.bvs-nav-card:hover {
  border-color: var(--bvs-gold);
  box-shadow:   var(--bvs-shadow);
  transform:    translateY(-3px);
}

.bvs-nav-card--next { flex-direction: row-reverse; }

.bvs-nav-thumb {
  width:               140px;
  min-width:           140px;
  background-size:     cover;
  background-position: center;
  flex-shrink:         0;
}

.bvs-nav-thumb--empty { background-color: var(--bvs-slate); }

.bvs-nav-card-body {
  padding:        20px 24px;
  display:        flex;
  flex-direction: column;
  justify-content:center;
  gap:            8px;
  min-width:      0;
  flex:           1;
}

.bvs-nav-card-body--right { text-align: right; }

.bvs-nav-dir {
  display:        inline-flex;
  align-items:    center;
  gap:            5px;
  font-family:    var(--bvs-sans);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color:          var(--bvs-gold);
}

.bvs-nav-title {
  font-family:   var(--bvs-serif);
  font-size:     clamp(14px, 1.5vw, 18px);
  color:         var(--bvs-charcoal);
  line-height:   1.3;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ⑥ CTA STRIP
   ═══════════════════════════════════════════════════════════════════════════ */

.bvs-cta { background: var(--bvs-charcoal); }

.bvs-cta-inner {
  padding:    16px 0 80px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 60px,
      rgba(220,176,100,.02) 60px,
      rgba(220,176,100,.02) 61px
    );
}

.bvs-cta-heading {
  font-family:   var(--bvs-serif);
  font-size:     clamp(28px, 4vw, 44px);
  font-weight:   400;
  color:         var(--bvs-white);
  line-height:   1.2;
  margin-bottom: 16px;
}

.bvs-cta-sub {
  font-family: var(--bvs-sans);
  font-size:   clamp(14px, 1.8vw, 17px);
  color:       rgba(255,255,255,.60);
  max-width:   520px;
  margin:      0 auto 36px;
  line-height: 1.75;
}

.bvs-cta-buttons {
  display:         flex;
  gap:             16px;
  justify-content: center;
  flex-wrap:       wrap;
}

.bvs-btn {
  display:        inline-block;
  font-family:    var(--bvs-sans);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius:  3px;
  padding:        14px 32px;
  text-decoration:none;
  transition:     background   var(--bvs-transition),
                  color        var(--bvs-transition),
                  border-color var(--bvs-transition),
                  transform    var(--bvs-transition);
}

.bvs-btn--outline {
  background: transparent;
  border:     1.5px solid var(--bvs-gold);
  color:      var(--bvs-gold);
}

.bvs-btn--outline:hover {
  background: var(--bvs-gold);
  color:      var(--bvs-charcoal);
  transform:  translateY(-2px);
}

.bvs-btn--ghost {
  background: transparent;
  border:     1.5px solid rgba(255,255,255,.25);
  color:      rgba(255,255,255,.65);
}

.bvs-btn--ghost:hover {
  border-color: rgba(255,255,255,.6);
  color:        var(--bvs-white);
  transform:    translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .bvs-two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .bvs-col-meta {
    position:  static;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .bvs-main-panel  { padding: 32px 0 40px; }
  .bvs-description { padding: 40px 0; }
  .bvs-navigation  { padding: 40px 0; }
  .bvs-testimonial { padding: 48px 0; }

  .bvs-container,
  .bvs-container-narrow { padding: 0 20px; }

  /* Meta card full-width on phones */
  .bvs-col-meta  { max-width: 100%; }
  .bvs-meta-card { padding: 24px 20px; }

  /* Gallery thumbs slightly smaller */
  .bvs-gallery-thumb { width: 72px; height: 72px; }

  /* Nav: stack to single column, both cards left-aligned */
  .bvs-nav-grid             { grid-template-columns: 1fr; }
  .bvs-nav-card--next       { flex-direction: row; }
  .bvs-nav-card-body--right { text-align: left; }
  .bvs-nav-thumb            { width: 100px; min-width: 100px; }

  /* Quote mark smaller on phones */
  .bvs-quote-mark { font-size: 80px; }

  /* CTA buttons stacked */
  .bvs-cta-buttons  { flex-direction: column; align-items: center; }
  .bvs-btn          { width: 100%; max-width: 280px; text-align: center; }
}
