﻿/* =========================
   Profile — Content (unboxed)
   ========================= */
.vp-about {
    padding-top: .25rem;
}

    .vp-about .lead {
        font-size: 1.05rem;
    }

.vp-about-content p {
    margin-bottom: 1rem;
}

.vp-about-content h1, .vp-about-content h2, .vp-about-content h3 {
    margin-top: 1.2rem;
    margin-bottom: .6rem;
}

.vp-about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.vp-about-content iframe {
    max-width: 100%;
}

.vp-about-content table {
    width: 100%;
    max-width: 100%;
}

.vp-about-content blockquote {
    border-left: 3px solid var(--tc-border);
    padding-left: 1rem;
    color: var(--tc-text-muted);
}

/* =========================
   Profile — Hero Banner
   ========================= */
.vp-hero {
    position: relative;
    aspect-ratio: 3 / 1;
    height: auto !important;
    overflow: hidden;
    border-radius: 16px;
}

    .vp-hero img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .vp-hero .vp-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient( to top, color-mix(in srgb,var(--tc-black) 60%, transparent) 0%, color-mix(in srgb,var(--tc-black) 34%, transparent) 40%, color-mix(in srgb,var(--tc-black) 10%, transparent) 100% );
    }

/* =========================
   Profile — Identity row (over banner)
   ========================= */
.vp-identity {
    position: relative;
    z-index: 3;
    margin-top: -80px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

    .vp-identity.no-banner {
        margin-top: 0;
    }
/* safety if used */

/* Logo & fallback letter */
.vp-logo,
.vp-logo-fallback {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    border: 4px solid #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.vp-logo {
    object-fit: cover;
    display: block;
}

.vp-logo-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    background: linear-gradient(135deg, var(--tc-blue-light), #ffffff);
    color: var(--tc-blue);
}

/* Glass chip behind company name + meta */
.vp-identity-chip {
    background: rgba(255,255,255,.92);
    border: 1px solid color-mix(in srgb,var(--tc-border) 92%, var(--tc-white));
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    backdrop-filter: saturate(120%) blur(6px);
    color: var(--tc-blue);
    max-width: calc(100% - 140px);
}

    .vp-identity-chip h1 {
        margin: 0;
        color: var(--tc-blue);
        text-shadow: none;
    }

/* =========================
   Profile — Meta pills
   ========================= */
.vp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .92rem;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--tc-border);
    color: var(--tc-text-muted);
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
    text-decoration: none;
}

    .vp-meta-item svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        opacity: .7;
    }

    .vp-meta-item.is-link:hover {
        background: color-mix(in srgb,var(--tc-blue) 8%, var(--tc-white));
        border-color: color-mix(in srgb,var(--tc-blue) 20%, var(--tc-border));
    }

/* =========================
   Profile — Simple header (no banner/logo)
   ========================= */
.vp-simple {
    padding: 12px 0 8px;
    border-bottom: 1px solid var(--tc-border);
}

    .vp-simple h1 {
        font-weight: 700;
        letter-spacing: .2px;
    }

    .vp-simple .vp-meta-item {
        background: var(--tc-surface);
        border-color: var(--tc-border);
    }

        .vp-simple .vp-meta-item.is-link:hover {
            background: color-mix(in srgb,var(--tc-blue) 6%, var(--tc-surface));
            border-color: color-mix(in srgb,var(--tc-blue) 18%, var(--tc-border));
        }

/* =========================
   Responsive
   ========================= */
@media (max-width: 576px) {
    /* Banner aspect ratio */
    .vp-hero {
        aspect-ratio: 3 / 1;
        height: auto !important; /* override fixed height if set */
        position: relative;
    }

        .vp-hero img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    /* Identity overlap */
    .vp-identity {
        flex-direction: column;
        align-items: center;
        margin-top: -60px;
        text-align: center;
    }

    /* Logo centered + overlap more */
    .vp-logo,
    .vp-logo-fallback {
        width: 92px;
        height: 92px;
        border-radius: 18px;
    }

    /* Identity chip adjusts width and spacing */
    .vp-identity-chip {
        max-width: 100%;
        text-align: center;
    }

        .vp-identity-chip h1 {
            font-size: 1.3rem;
            margin: 0 0 6px;
            white-space: normal;
            overflow: visible;
            text-overflow: initial;
        }

    .vp-meta {
        justify-content: center;
    }

    .vp-meta-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}


/* Toolbar & tabs */
.vc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: .5rem 0 1rem
}

.vc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

    .vc-tabs a {
        padding: .45rem .75rem;
        border: 1px solid #e9eef5;
        border-radius: 999px;
        text-decoration: none;
        color: #2d3445;
        background: #fff
    }

        .vc-tabs a.active {
            background: #f1f6ff;
            border-color: #dfe7ff
        }

.vc-count {
    font-size: .85rem;
    color: #6b7380;
    margin-left: .25rem
}

/* === Profile Panels 2.0 (customizable) === */
:root {
    --vp-radius: 12px;
    --vp-border: #eef1f5;
    --vp-shadow: 0 2px 10px rgba(0,0,0,.04);
    --vp-surface: #fff;
    --vp-chip: #fff;
    --vp-chip-border: #e9eef5;
    --vp-accent: #1e3956;
    --vp-muted: #6c757d;
    --vp-map-h: 280px; /* map height */
}

.vp-section {
    background: var(--vp-surface);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow);
    margin-bottom: 16px;
    overflow: hidden; /* keeps map radius */
}

.vp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--vp-border);
    background: #fff;
}

    .vp-section-head h5 {
        margin: 0;
        font-weight: 700;
        letter-spacing: .2px;
        color: var(--vp-accent);
        font-size: 1rem
    }

.vp-section-body {
    padding: 12px 14px
}

/* Inline icon rows */
.vp-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--vp-border)
}

    .vp-row:last-child {
        border-bottom: 0
    }

.vp-ico {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    fill: currentColor;
    color: #3b4256;
    margin-top: 2px
}

.vp-col {
    flex: 1 1 auto;
    min-width: 0
}

/* Link style harmony */
.vp-link {
    color: #2d3445;
    text-decoration: none
}

    .vp-link:hover {
        text-decoration: underline
    }

/* Category chips (same language as profile pills) */
.vp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.vp-chip {
    display: inline-block;
    background: var(--vp-chip);
    border: 1px solid var(--vp-chip-border);
    border-radius: 999px;
    padding: .35rem .65rem;
    color: #2d3445;
    text-decoration: none;
}

    .vp-chip:hover {
        background: #f4f7ff;
        border-color: #dfe7ff
    }

/* Map */
.vp-map-wrap {
    padding: 0
}
/* no padding so map kisses edges */
.vp-map {
    height: var(--vp-map-h);
    width: 100%;
    display: block;
    border-radius: 0 0 var(--vp-radius) var(--vp-radius)
}

/* Centered city/state bar under the map */
.vp-locbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    text-align: center;
    color: #3b4256;
    border-top: 1px solid var(--vp-border);
}

    .vp-locbar .vp-ico {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        fill: currentColor;
    }
/* === Products: plain section (no box) === */
.vp-products {
    margin: 8px 0
}

.vp-products-head {
    margin-bottom: .5rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--vp-border);
}

.vp-products-empty {
    padding: .5rem 0
}

/* Products — readable list (no box) */
.vp-prod-readable {
    padding: 14px 0;
    border-bottom: 1px dashed var(--vp-border);
}

    .vp-prod-readable:last-child {
        border-bottom: 0
    }

.vp-prod-head {
    display: flex;
    align-items: center;
    justify-content: space-between; /* price (if present) on the right */
    gap: 12px;
    margin-bottom: 6px;
}

/* Title gets available width; no weird wrapping */
.vp-prod-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    white-space: normal;
    word-break: normal !important; /* override aggressive globals */
    overflow-wrap: break-word; /* break long words/URLs nicely */
}

/* Price pill (when present) */
.vp-price-pill {
    flex: 0 0 auto;
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e9eef5;
    color: #1e3956;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.vp-prod-desc {
    color: #2d3445;
    line-height: 1.55;
    margin-bottom: 8px;
}

    .vp-prod-desc p {
        margin-bottom: .75rem
    }

.vp-prod-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .vp-prod-cta .btn {
        margin-top: 2px
    }

/* --- Products section harden/reset --- */
.vp-products {
    display: block;
    position: relative;
}

.vp-products-head {
    display: block;
    float: none;
    margin-bottom: .5rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--vp-border);
}

    .vp-products-head::after {
        content: "";
        display: block;
        clear: both;
    }
/* kill stray floats */

/* Each item starts cleanly under the header */
.vp-prod-readable {
    display: block;
    clear: both;
    padding: 14px 0;
    border-bottom: 1px dashed var(--vp-border);
}

    .vp-prod-readable:last-child {
        border-bottom: 0;
    }

/* Header row: stable with or without a price */
.vp-prod-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    width: 100%;
}

/* Title: take the left, normal horizontal text, no floats, no weird wraps */
.vp-prod-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    width: auto !important;
    float: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    direction: ltr !important;
}

/* Price hugs right when present */
.vp-price-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Body + CTA (unchanged) */
.vp-prod-desc {
    color: #2d3445;
    line-height: 1.55;
    margin-bottom: 8px;
}

    .vp-prod-desc p {
        margin-bottom: .75rem;
    }

.vp-prod-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .vp-prod-cta .btn {
        margin-top: 2px;
    }


@media (max-width:576px) {
    :root {
        --vp-map-h: 220px
    }
}

