/* ═══════════════════════════════════════════════════════════════════════════
   vCard Contact Pages – Front-end Styles
   Styled to match capitaldesignworks.com.au
   Light modern theme · Royal blue accent · Rounded cards · Bold type
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Palette (Capital Design Works) ──────────────────────────────── */
    --vcp-bg:             #f2f2f2;
    --vcp-card-bg:        #ffffff;
    --vcp-text:           #1a1a2e;
    --vcp-text-muted:     #6c6c80;
    --vcp-text-secondary: #4a4a5c;

    /* Royal Blue accent — matches CDW primary */
    --vcp-accent:         #3B5BDB;
    --vcp-accent-hover:   #2b4bc4;
    --vcp-accent-dark:    #2440a8;
    --vcp-accent-light:   #edf0fc;
    --vcp-accent-subtle:  rgba(59, 91, 219, 0.06);

    --vcp-border:         rgba(0, 0, 0, 0.06);
    --vcp-border-strong:  rgba(0, 0, 0, 0.10);
    --vcp-shadow:         0 1px 3px rgba(0,0,0,.03), 0 6px 24px rgba(0,0,0,.06);
    --vcp-shadow-lg:      0 2px 8px rgba(0,0,0,.04), 0 16px 48px rgba(0,0,0,.08);

    --vcp-radius:         20px;
    --vcp-radius-md:      14px;
    --vcp-radius-sm:      10px;

    /* Typography – clean geometric sans like CDW uses */
    --vcp-font-body:      'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --vcp-font-display:   'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ─── Reset for the template ─────────────────────────────────────────────── */
.vcp-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.vcp-page {
    font-family: var(--vcp-font-body);
    color: var(--vcp-text);
    background: var(--vcp-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Card Shell ─────────────────────────────────────────────────────────── */
.vcp-card {
    width: 100%;
    max-width: 420px;
    background: var(--vcp-card-bg);
    border-radius: var(--vcp-radius);
    box-shadow: var(--vcp-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--vcp-border);
    animation: vcp-fadeUp .5s ease-out both;
}

@keyframes vcp-fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Header / Photo area ────────────────────────────────────────────────── */
.vcp-header {
    position: relative;
    background: var(--vcp-accent);
    padding: 48px 32px 52px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Subtle geometric overlay to match CDW rounded design language */
.vcp-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.vcp-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--vcp-card-bg);
    border-radius: var(--vcp-radius) var(--vcp-radius) 0 0;
}

.vcp-avatar {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    background: rgba(255,255,255,0.1);
}

.vcp-avatar-placeholder {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    font-family: var(--vcp-font-display);
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 0.02em;
}

.vcp-name {
    position: relative;
    z-index: 2;
    font-family: var(--vcp-font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.vcp-title-org {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 500;
    opacity: .85;
    line-height: 1.4;
}

/* ─── Company logo badge (optional) ──────────────────────────────────────── */
.vcp-logo-badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ─── Body / Contact Details ─────────────────────────────────────────────── */
.vcp-body {
    padding: 8px 28px 28px;
}

/* ─── Quick action row ───────────────────────────────────────────────────── */
.vcp-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vcp-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px 14px;
    background: var(--vcp-accent-light);
    border-radius: var(--vcp-radius-sm);
    color: var(--vcp-accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s, transform .15s;
}

.vcp-action-btn:hover {
    background: #dde3f9;
    transform: translateY(-1px);
    color: var(--vcp-accent);
    text-decoration: none;
}

.vcp-action-btn:active {
    transform: translateY(0);
}

.vcp-action-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Detail rows ────────────────────────────────────────────────────────── */
.vcp-details {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.vcp-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--vcp-border);
}

.vcp-detail-item:last-child {
    border-bottom: none;
}

.vcp-detail-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--vcp-radius-sm);
    background: var(--vcp-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vcp-accent);
}

.vcp-detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vcp-detail-content {
    min-width: 0;
    flex: 1;
}

.vcp-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vcp-text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.vcp-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--vcp-text);
    word-break: break-word;
}

.vcp-detail-value a {
    color: var(--vcp-accent);
    text-decoration: none;
    transition: color .15s;
}

.vcp-detail-value a:hover {
    color: var(--vcp-accent-hover);
    text-decoration: underline;
}

/* ─── CTA Button ─────────────────────────────────────────────────────────── */
.vcp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-family: var(--vcp-font-body);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--vcp-accent);
    border: none;
    border-radius: var(--vcp-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(59,91,219,0.25);
    letter-spacing: 0.01em;
}

.vcp-cta:hover {
    background: var(--vcp-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59,91,219,0.3);
    color: #fff;
    text-decoration: none;
}

.vcp-cta:active {
    transform: translateY(0);
}

.vcp-cta svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── Secondary outline CTA (website link) ───────────────────────────────── */
.vcp-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    margin-top: 10px;
    font-family: var(--vcp-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--vcp-accent);
    background: transparent;
    border: 1.5px solid var(--vcp-accent);
    border-radius: var(--vcp-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.vcp-cta-secondary:hover {
    background: var(--vcp-accent-light);
    color: var(--vcp-accent);
    text-decoration: none;
}

.vcp-cta-secondary svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.vcp-footer {
    text-align: center;
    padding: 16px 28px 22px;
    font-size: 12px;
    color: var(--vcp-text-muted);
    border-top: 1px solid var(--vcp-border);
}

.vcp-footer a {
    color: var(--vcp-accent);
    text-decoration: none;
    font-weight: 500;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .vcp-page {
        padding: 12px 8px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .vcp-header {
        padding: 40px 24px 44px;
    }

    .vcp-body {
        padding: 4px 20px 24px;
    }

    .vcp-name {
        font-size: 23px;
    }

    .vcp-avatar,
    .vcp-avatar-placeholder {
        width: 96px;
        height: 96px;
    }

    .vcp-avatar-placeholder {
        font-size: 32px;
    }
}
