/* =========================================================================
   BATH VANITY / CATEGORY-PAGE SECTIONS (tek-cabinets/bv-*)
   Type Cards, Info Cards, Family Panel & Paths. Built on the Homeowners
   section system (homeowners.css: .ho colour variables, type, buttons), so
   padding (70 / 50), joined sections, Background and the 2px radius match.
   ========================================================================= */
.ho-head-center{margin-inline:auto;text-align:center}
.ho-head-center .ho-h2,.ho-head-center .ho-body{margin-inline:auto}

/* ---------- Type cards ---------- */
.bv-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ho-gap)}
.bv-type-grid>li{display:flex}
.bv-type{position:relative;flex:1;display:flex;flex-direction:column;gap:20px;padding:20px 20px 24px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);color:inherit;text-decoration:none;transition:border-color 260ms var(--ease),box-shadow 260ms var(--ease),transform 260ms var(--ease)}
a.bv-type:hover,a.bv-type:focus-visible{border-color:var(--brand);box-shadow:0 18px 34px -24px rgba(29,58,44,.45);transform:translateY(-3px)}
.bv-type-art{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;overflow:hidden;background:var(--stone);border-radius:var(--radius);color:var(--brand)}
.bv-type-art svg{width:62%;height:auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.bv-type-art svg .f{fill:#fff}
.bv-type-art svg .s{stroke:rgba(29,58,44,.25);stroke-width:6}
.bv-type-art.has-img img{width:100%;height:100%;object-fit:cover;border-radius:0}
.bv-type-copy{display:block;padding-right:44px}
.bv-type-copy .ho-small{margin-top:8px}
.bv-type .dc-arw{position:absolute;right:20px;bottom:24px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;color:var(--ink);transition:background-color var(--t-micro) var(--ease),border-color var(--t-micro) var(--ease),color var(--t-micro) var(--ease)}
.bv-type .dc-arw svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
a.bv-type:hover .dc-arw{background:var(--brand);border-color:var(--brand);color:#fff}
a.bv-type:hover .ho-card-t{color:var(--brand)}

/* ---------- Info cards ---------- */
.bv-cards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ho-gap)}
.bv-cards-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.bv-cards-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.bv-cards-grid>li{display:flex}
.bv-card{flex:1;display:flex;flex-direction:column;padding:clamp(22px,2.4vw,30px);background:var(--ho-tile);border:1px solid var(--ho-line);border-radius:var(--radius);color:inherit;text-decoration:none;transition:background-color 260ms var(--ease),border-color 260ms var(--ease),box-shadow 260ms var(--ease),transform 260ms var(--ease)}
.bv-card :is(.ho-card-t,.ho-small,.ho-link),.bv-card-ic{transition:color 260ms var(--ease),background-color 260ms var(--ease)}
.bv-card-ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:20px;border-radius:var(--radius);background:var(--stone);color:var(--brand)}
.ho-stone .bv-card-ic,.tek-bg-paper .bv-card-ic{background:var(--stone)}
.ho-dark .bv-card-ic,.tek-bg-deep .bv-card-ic{background:rgba(255,255,255,.1);color:var(--ho-gold)}
.bv-card-ic svg{width:22px;height:22px}
.bv-card .ho-small{margin-top:10px}
.bv-card .ho-link{margin-top:auto;padding-top:20px}
a.bv-card:hover,a.bv-card:focus-visible{border-color:var(--ho-label);transform:translateY(-3px)}
a.bv-card:hover .ho-link{text-decoration:underline;text-underline-offset:4px}
/* Top-line style */
.bv-cards-grid.is-line .bv-card{border:0;border-top:4px solid var(--ho-label);box-shadow:0 12px 30px -20px rgba(28,50,39,.35)}
/* Highlighted first card: always light */
.bv-cards-grid.has-featured>li:first-child .bv-card{--ho-head:var(--ink);--ho-text:var(--ink-soft);--ho-label:var(--brand);background:var(--paper);border-color:var(--paper)}
.bv-cards-grid.has-featured>li:first-child .bv-card-ic{background:var(--stone);color:var(--brand)}
/* Cards on a green section: white with dark text on hover */
.ho-dark .bv-card:hover,.tek-bg-deep .bv-card:hover,.ho-dark a.bv-card:focus-visible,.tek-bg-deep a.bv-card:focus-visible{--ho-head:var(--ink);--ho-text:var(--ink-soft);--ho-label:var(--brand);background:var(--paper);border-color:var(--paper)}
.ho-dark .bv-card:hover .bv-card-ic,.tek-bg-deep .bv-card:hover .bv-card-ic{background:var(--stone);color:var(--brand)}
/* Green band under the cards */
.bv-band{display:grid;grid-template-columns:minmax(0,.4fr) minmax(0,1fr);gap:16px clamp(24px,4vw,56px);align-items:center;margin-top:var(--ho-gap);padding:clamp(24px,3vw,36px);background:var(--brand);border-radius:var(--radius)}
.bv-band .ho-card-t{color:#fff}
.bv-band .ho-small{color:rgba(255,255,255,.82);font-size:var(--fs-body)}
.tek-bg-deep .bv-band,.ho-dark .bv-band{background:rgba(255,255,255,.08)}

/* ---------- Family panel + paths ---------- */
.bv-family-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);column-gap:var(--ho-split);align-items:center}
.bv-panel{--ho-head:#fff;--ho-text:rgba(255,255,255,.8);--ho-label:var(--ho-gold);padding:clamp(28px,4vw,48px);background:var(--brand);border-radius:var(--radius);box-shadow:0 24px 48px -28px rgba(29,58,44,.6)}
.bv-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px}
.bv-facts li{padding:16px 18px;border:1px solid rgba(255,255,255,.22);border-radius:var(--radius)}
.bv-facts strong{display:block;font-family:var(--font-head);font-weight:700;font-size:15px;color:#fff}
.bv-facts span{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.78)}
.bv-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}
.bv-path{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(22px,2.4vw,28px)}
.bv-path .ho-small{margin:8px 0 24px}
.bv-path .btn{margin-top:auto}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .bv-type-grid,.bv-cards-grid,.bv-cards-grid.cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1024px){
  .bv-family-grid{grid-template-columns:minmax(0,1fr);row-gap:48px}
}
@media (max-width:767px){
  .bv-type-grid,.bv-cards-grid,.bv-cards-grid.cols-2,.bv-cards-grid.cols-3{grid-template-columns:minmax(0,1fr)}
  .bv-band{grid-template-columns:minmax(0,1fr)}
  .bv-facts,.bv-paths{grid-template-columns:minmax(0,1fr)}
  .bv-path .btn{width:100%}
}

/* ---------- Block editor ---------- */
.tek-inline-block .bv-type{cursor:default}
.tek-inline-block .bv-type .tek-img-swap.components-button{right:28px;top:28px;height:28px;padding:0 8px;font-size:12px}
