/* ==========================================================================
   vDoc Dedicated Product Landing Page Styles
   Comply4HR Automation Suite - vDoc (Vendor Labour Compliance Software)
   Directly inherits and harmonizes with Comply4HR theme tokens (theme.css)
   ========================================================================== */

:root {
    /* 1. Theme Typography & Fonts */
    --vdoc-font: var(--c4hr-font-sans, 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);

    /* 2. Theme Brand Colors */
    --vdoc-navy: var(--c4hr-navy, #3E4095);
    --vdoc-navy-dark: var(--c4hr-navy-dark, #23226A);
    --vdoc-navy-mid: var(--c4hr-navy-mid, #35348F);
    --vdoc-navy-light: var(--c4hr-navy-light, #5456A8);
    --vdoc-navy-hero: #152445; /* Rich midnight navy canvas for hero and contractor split */

    /* Action Orange Hierarchy */
    --vdoc-orange: var(--c4hr-orange, #F58634);
    --vdoc-orange-hover: var(--c4hr-orange-hover, #E07323);
    --vdoc-orange-subtle: var(--c4hr-orange-subtle, #FFF7ED);
    --vdoc-orange-border: var(--c4hr-orange-border, #FED7AA);

    /* Text & Headings */
    --vdoc-text-heading: var(--c4hr-text-heading, #1A1A36);
    --vdoc-text-body: var(--c4hr-text-body, #334155);
    --vdoc-text-muted: var(--c4hr-text-muted, #64748B);
    --vdoc-text-subtle: var(--c4hr-text-subtle, #94A3B8);

    /* Surfaces & Borders */
    --vdoc-bg-card: var(--c4hr-bg-card, #FFFFFF);
    --vdoc-bg-page: var(--c4hr-bg-page, #F8FAFC);
    --vdoc-bg-light: #F5F8FC;
    --vdoc-bg-cta: #EBF2FB;
    --vdoc-border: var(--c4hr-border, #E2E8F0);
    --vdoc-border-subtle: var(--c4hr-border-subtle, #F1F5F9);

    /* Radii & Shadows */
    --vdoc-radius-lg: 20px;
    --vdoc-radius-md: 14px;
    --vdoc-radius-pill: 30px;
    --vdoc-shadow-card: 0 12px 35px rgba(24, 42, 77, 0.08);
    --vdoc-shadow-hover: 0 16px 36px rgba(24, 42, 77, 0.12);
}

/* Page Scaffolding */
.vdoc-page-wrapper {
    font-family: var(--vdoc-font);
    color: var(--vdoc-text-body);
    background-color: var(--vdoc-bg-card);
    line-height: 1.5;
    overflow-x: hidden;
}

.vdoc-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Typography & Badges */
.vdoc-eyebrow {
    display: inline-block;
    font-family: var(--vdoc-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vdoc-orange);
    margin-bottom: 16px;
}

.vdoc-highlight {
    color: var(--vdoc-orange);
}

/* Shared Buttons */
.vdoc-btn-primary {
    font-family: var(--vdoc-font);
    background: var(--vdoc-orange);
    color: #ffffff !important;
    border: 1px solid var(--vdoc-orange);
    border-radius: var(--vdoc-radius-pill);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(245, 134, 52, 0.35);
    cursor: pointer;
}

.vdoc-btn-primary:hover {
    background: var(--vdoc-orange-hover);
    border-color: var(--vdoc-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 134, 52, 0.45);
    color: #ffffff !important;
}

.vdoc-btn-secondary {
    font-family: var(--vdoc-font);
    background: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--vdoc-radius-pill);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vdoc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.vdoc-btn-call {
    font-family: var(--vdoc-font);
    background: #ffffff;
    color: var(--vdoc-navy) !important;
    border: 1.5px solid var(--vdoc-navy);
    border-radius: var(--vdoc-radius-pill);
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vdoc-btn-call:hover {
    background: var(--vdoc-navy);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Section 1: Hero Section
   ========================================================================== */
.vdoc-hero {
    background: linear-gradient(180deg, var(--vdoc-navy-hero) 0%, #101c36 100%);
    padding: 85px 0 100px;
    position: relative;
    overflow: hidden;
}

.vdoc-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.vdoc-hero-content {
    max-width: 580px;
}

.vdoc-hero-title {
    font-family: var(--vdoc-font);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.vdoc-hero-desc {
    font-family: var(--vdoc-font);
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 34px;
}

.vdoc-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.vdoc-trust-text {
    font-family: var(--vdoc-font);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 24px;
    font-weight: 500;
}

.vdoc-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subtle glow behind the 3D box card */
.vdoc-hero-visual::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 134, 52, 0.22) 0%, rgba(21, 36, 69, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.vdoc-hero-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 28px;
    padding: 34px 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.vdoc-hero-box-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.vdoc-hero-card:hover .vdoc-hero-box-img {
    transform: scale(1.02);
}

/* ==========================================================================
   Section 2: Floating Stats Counter Bar (Animated)
   ========================================================================== */
.vdoc-stats-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    margin-bottom: 25px;
}

.vdoc-stats-card {
    background: var(--vdoc-bg-card);
    border-radius: var(--vdoc-radius-md);
    box-shadow: var(--vdoc-shadow-card);
    border: 1px solid var(--vdoc-border);
    padding: 28px 20px;
}

.vdoc-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    text-align: center;
}

.vdoc-stat-item {
    padding: 0 10px;
    border-right: 1px solid var(--vdoc-border-subtle);
    transition: transform 0.25s ease;
}

.vdoc-stat-item:hover {
    transform: translateY(-2px);
}

.vdoc-stat-item:last-child {
    border-right: none;
}

.vdoc-stat-num {
    font-family: var(--vdoc-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--vdoc-navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    display: block;
    min-height: 38px;
    transition: color 0.25s ease;
}

.vdoc-stat-item:hover .vdoc-stat-num {
    color: var(--vdoc-orange);
}

.vdoc-stat-label {
    font-family: var(--vdoc-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--vdoc-text-muted);
    margin-top: 6px;
    line-height: 1.35;
}

/* ==========================================================================
   Section 3: "WHY vDoc"
   ========================================================================== */
.vdoc-why-section {
    padding: 95px 0 85px;
    background: #ffffff;
}

.vdoc-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.vdoc-why-media {
    position: relative;
}

.vdoc-why-accent-tab {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 90px;
    height: 90px;
    background: var(--vdoc-orange);
    border-radius: 22px 0 0 0;
    z-index: 1;
}

.vdoc-why-img-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(24, 42, 77, 0.12);
}

.vdoc-why-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.vdoc-why-content {
    max-width: 520px;
}

.vdoc-why-title {
    font-family: var(--vdoc-font);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--vdoc-text-heading);
    margin-bottom: 34px;
    letter-spacing: -0.5px;
}

.vdoc-why-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.vdoc-why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.vdoc-why-badge {
    font-family: var(--vdoc-font);
    width: 44px;
    height: 38px;
    border-radius: 10px;
    background: var(--vdoc-orange);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.3);
}

.vdoc-why-item-title {
    font-family: var(--vdoc-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--vdoc-navy);
    margin-bottom: 4px;
}

.vdoc-why-item-desc {
    font-family: var(--vdoc-font);
    font-size: 15px;
    color: var(--vdoc-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Section 4: "HOW IT WORKS" (5-Step Connected Workflow)
   ========================================================================== */
.vdoc-steps-section {
    background: linear-gradient(135deg, #F28527 0%, var(--vdoc-orange) 100%);
    padding: 85px 0 95px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.vdoc-steps-header {
    text-align: center;
    margin-bottom: 60px;
}

.vdoc-steps-eyebrow {
    font-family: var(--vdoc-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    display: block;
}

.vdoc-steps-title {
    font-family: var(--vdoc-font);
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.vdoc-steps-track {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: flex-start;
}

/* Connecting Horizontal Bar */
.vdoc-steps-track::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
}

.vdoc-step-node {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.vdoc-step-circle {
    font-family: var(--vdoc-font);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--vdoc-orange);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.vdoc-step-circle.vdoc-step-final {
    background: var(--vdoc-navy);
    color: #ffffff;
}

.vdoc-step-node:hover .vdoc-step-circle {
    transform: scale(1.1);
}

.vdoc-step-name {
    font-family: var(--vdoc-font);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.vdoc-step-text {
    font-family: var(--vdoc-font);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    max-width: 175px;
    margin: 0 auto;
}

/* ==========================================================================
   Section 5: "WHAT YOU GET" (6 Feature Cards Grid)
   ========================================================================== */
.vdoc-grid-section {
    background: var(--vdoc-bg-light);
    padding: 95px 0 105px;
}

.vdoc-grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.vdoc-grid-title {
    font-family: var(--vdoc-font);
    font-size: 38px;
    font-weight: 800;
    color: var(--vdoc-text-heading);
    letter-spacing: -0.5px;
}

.vdoc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vdoc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 34px 28px;
    border: 1px solid var(--vdoc-border);
    box-shadow: 0 6px 20px rgba(24, 42, 77, 0.04);
    transition: all 0.25s ease;
}

.vdoc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vdoc-shadow-hover);
    border-color: #DDE5F0;
}

.vdoc-card-bar {
    width: 44px;
    height: 4px;
    background: var(--vdoc-orange);
    border-radius: 2px;
    margin-bottom: 22px;
}

.vdoc-card-title {
    font-family: var(--vdoc-font);
    font-size: 19px;
    font-weight: 800;
    color: var(--vdoc-navy);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.vdoc-card-text {
    font-family: var(--vdoc-font);
    font-size: 14.5px;
    color: var(--vdoc-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Section 6: "BUILT FOR LABOUR CONTRACTORS" (Split 50/50)
   ========================================================================== */
.vdoc-contractor-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--vdoc-navy-hero);
    min-height: 520px;
}

.vdoc-contractor-left {
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    margin-left: auto;
}

.vdoc-contractor-title {
    font-family: var(--vdoc-font);
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.vdoc-contractor-body {
    font-family: var(--vdoc-font);
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
}

.vdoc-contractor-callout {
    font-family: var(--vdoc-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--vdoc-orange);
    margin-bottom: 34px;
    line-height: 1.5;
}

.vdoc-contractor-right {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.vdoc-contractor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Section 7: Final Conversion CTA
   ========================================================================== */
.vdoc-cta-section {
    background: var(--vdoc-bg-cta);
    padding: 85px 20px;
    text-align: center;
}

.vdoc-cta-title {
    font-family: var(--vdoc-font);
    font-size: 40px;
    font-weight: 800;
    color: var(--vdoc-navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.vdoc-cta-sub {
    font-family: var(--vdoc-font);
    font-size: 17px;
    color: var(--vdoc-text-muted);
    margin-bottom: 34px;
}

.vdoc-cta-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
    .vdoc-hero-title {
        font-size: 44px;
    }

    .vdoc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }

    .vdoc-stat-item:nth-child(3) {
        border-right: none;
    }

    .vdoc-stat-item:nth-child(4),
    .vdoc-stat-item:nth-child(5),
    .vdoc-stat-item:nth-child(6) {
        padding-top: 10px;
        border-top: 1px solid var(--vdoc-border-subtle);
    }

    .vdoc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vdoc-contractor-left {
        padding: 60px 40px;
    }
}

@media (max-width: 900px) {
    .vdoc-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vdoc-hero-content {
        max-width: 100%;
    }

    .vdoc-hero-actions {
        justify-content: center;
    }

    .vdoc-hero-card {
        margin: 20px auto 0;
    }

    .vdoc-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vdoc-why-content {
        max-width: 100%;
    }

    .vdoc-contractor-section {
        grid-template-columns: 1fr;
    }

    .vdoc-contractor-left {
        max-width: 100%;
        padding: 50px 24px;
    }

    .vdoc-contractor-right {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .vdoc-hero {
        padding: 60px 0 80px;
    }

    .vdoc-hero-title {
        font-size: 36px;
    }

    .vdoc-stats-wrapper {
        margin-top: -30px;
    }

    .vdoc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vdoc-stat-item:nth-child(even) {
        border-right: none;
    }

    .vdoc-stat-item:nth-child(odd) {
        border-right: 1px solid var(--vdoc-border-subtle);
    }

    .vdoc-stat-item:nth-child(3),
    .vdoc-stat-item:nth-child(4),
    .vdoc-stat-item:nth-child(5),
    .vdoc-stat-item:nth-child(6) {
        border-top: 1px solid var(--vdoc-border-subtle);
        padding-top: 10px;
    }

    .vdoc-steps-track {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .vdoc-steps-track::before {
        display: none;
    }

    .vdoc-step-node {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        background: rgba(255, 255, 255, 0.1);
        padding: 16px 20px;
        border-radius: 12px;
    }

    .vdoc-step-circle {
        margin: 0;
        flex-shrink: 0;
    }

    .vdoc-step-text {
        max-width: 100%;
        margin: 0;
    }

    .vdoc-cards-grid {
        grid-template-columns: 1fr;
    }

    .vdoc-why-title,
    .vdoc-steps-title,
    .vdoc-grid-title,
    .vdoc-contractor-title,
    .vdoc-cta-title {
        font-size: 30px;
    }
}
