/*
 * HOZIT V5 LEGACY CONTENT COMPATIBILITY
 * -------------------------------------
 * Compatibility styles for content produced by:
 *
 *   templates/article.php
 *   templates/service-enterprise.php
 *
 * IMPORTANT:
 * Everything is scoped beneath .v5-legacy-content so these
 * rules cannot overwrite the master V5 header, navigation
 * footer or global site controls.
 */


/* ==========================================================
   FOUNDATION
   ========================================================== */

.v5-legacy-content {
    --legacy-orange: #ff6a00;
    --legacy-orange-dark: #e95f00;
    --legacy-navy: #091a35;
    --legacy-text: #23324a;
    --legacy-muted: #68758a;
    --legacy-line: #e5eaf1;
    --legacy-soft: #f6f8fb;
    --legacy-white: #ffffff;

    color: var(--legacy-text);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.7;
}

.v5-legacy-content *,
.v5-legacy-content *::before,
.v5-legacy-content *::after {
    box-sizing: border-box;
}

.v5-legacy-content .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.v5-legacy-content img {
    max-width: 100%;
    height: auto;
}

.v5-legacy-content a {
    color: inherit;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.v5-legacy-content h1,
.v5-legacy-content h2,
.v5-legacy-content h3,
.v5-legacy-content h4 {
    margin-top: 0;
    color: var(--legacy-navy);
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.15;
}

.v5-legacy-content h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    letter-spacing: -0.05em;
}

.v5-legacy-content h2 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    letter-spacing: -0.035em;
}

.v5-legacy-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.v5-legacy-content p {
    margin-top: 0;
}

.v5-legacy-content .eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--legacy-orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}


/* ==========================================================
   BUTTONS / ACTIONS
   ========================================================== */

.v5-legacy-content .actions,
.v5-legacy-content .hero-actions,
.v5-legacy-content .cta-row,
.v5-legacy-content .article-actions,
.v5-legacy-content .article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.v5-legacy-content .btn,
.v5-legacy-content a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;

    color: #fff;
    background: var(--legacy-orange);
    border: 1px solid var(--legacy-orange);
    border-radius: 999px;

    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.v5-legacy-content .btn:hover,
.v5-legacy-content .btn:focus-visible {
    color: #fff;
    background: var(--legacy-orange-dark);
    border-color: var(--legacy-orange-dark);
    box-shadow: 0 14px 30px rgba(255, 106, 0, .22);
    transform: translateY(-2px);
}

.v5-legacy-content .btn-secondary {
    color: var(--legacy-navy);
    background: transparent;
    border-color: rgba(9, 26, 53, .18);
}

.v5-legacy-content .btn-secondary:hover,
.v5-legacy-content .btn-secondary:focus-visible {
    color: var(--legacy-navy);
    background: var(--legacy-white);
    border-color: rgba(9, 26, 53, .35);
}

.v5-legacy-content .btn-call {
    color: #fff;
    background: var(--legacy-navy);
    border-color: var(--legacy-navy);
}

.v5-legacy-content .btn-packages {
    color: var(--legacy-navy);
    background: var(--legacy-white);
}


/* ==========================================================
   BREADCRUMBS
   ========================================================== */

.v5-legacy-content .service-breadcrumbs {
    padding: 22px 0;
    background: #fff;
    border-bottom: 1px solid var(--legacy-line);
}

.v5-legacy-content .service-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;
    color: var(--legacy-muted);
    font-size: .9rem;
}

.v5-legacy-content .service-breadcrumbs a {
    color: var(--legacy-muted);
    text-decoration: none;
}

.v5-legacy-content .service-breadcrumbs a:hover {
    color: var(--legacy-orange);
}

.v5-legacy-content .breadcrumb-separator {
    opacity: .5;
}


/* ==========================================================
   SERVICE HERO
   ========================================================== */

.v5-legacy-content .page-hero,
.v5-legacy-content .service-hero {
    position: relative;
    overflow: hidden;

    padding: clamp(72px, 9vw, 130px) 0;

    color: #fff;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 106, 0, .20),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #07172f 0%,
            #0b2144 55%,
            #101f38 100%
        );
}

.v5-legacy-content .page-hero h1,
.v5-legacy-content .service-hero h1 {
    max-width: 900px;
    color: #fff;
}

.v5-legacy-content .page-hero p,
.v5-legacy-content .service-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.v5-legacy-content .split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: clamp(35px, 6vw, 80px);
    align-items: center;
}


/* ==========================================================
   GENERAL CONTENT SECTIONS
   ========================================================== */

.v5-legacy-content section:not(.page-hero):not(.service-hero) {
    padding-block: clamp(60px, 8vw, 100px);
}

.v5-legacy-content .soft {
    background: var(--legacy-soft);
}

.v5-legacy-content .content-narrow {
    width: min(820px, 100%);
    margin-inline: auto;
}

.v5-legacy-content .section-head {
    max-width: 780px;
    margin-bottom: 38px;
}

.v5-legacy-content .section-head p {
    color: var(--legacy-muted);
}


/* ==========================================================
   CARDS
   ========================================================== */

.v5-legacy-content .cards,
.v5-legacy-content .service-component-grid,
.v5-legacy-content .process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.v5-legacy-content .card {
    height: 100%;
    padding: 26px;

    background: #fff;
    border: 1px solid var(--legacy-line);
    border-radius: 20px;

    box-shadow: 0 14px 40px rgba(8, 25, 52, .06);
}

.v5-legacy-content .card h3 {
    margin-bottom: 10px;
}

.v5-legacy-content .card p {
    color: var(--legacy-muted);
}

.v5-legacy-content .process-number {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    margin-bottom: 18px;

    color: #fff;
    background: var(--legacy-orange);
    border-radius: 14px;

    font-weight: 800;
}


/* ==========================================================
   CHECKLISTS / TAGS
   ========================================================== */

.v5-legacy-content .checklist,
.v5-legacy-content .article-check-list,
.v5-legacy-content .article-cta-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v5-legacy-content .checklist li,
.v5-legacy-content .article-check-list li,
.v5-legacy-content .article-cta-benefits li {
    position: relative;
    padding: 8px 0 8px 28px;
}

.v5-legacy-content .checklist li::before,
.v5-legacy-content .article-check-list li::before,
.v5-legacy-content .article-cta-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--legacy-orange);
    font-weight: 900;
}

.v5-legacy-content .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.v5-legacy-content .tag-cloud > * {
    padding: 8px 12px;
    background: var(--legacy-soft);
    border: 1px solid var(--legacy-line);
    border-radius: 999px;
}


/* ==========================================================
   DARK PANEL / CTA
   ========================================================== */

.v5-legacy-content .dark-panel,
.v5-legacy-content .cta,
.v5-legacy-content .service-cta {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #081a37,
            #0c254d
        );
}

.v5-legacy-content .dark-panel h2,
.v5-legacy-content .dark-panel h3,
.v5-legacy-content .cta h2,
.v5-legacy-content .cta h3,
.v5-legacy-content .service-cta h2,
.v5-legacy-content .service-cta h3 {
    color: #fff;
}

.v5-legacy-content .dark-panel p,
.v5-legacy-content .cta p,
.v5-legacy-content .service-cta p {
    color: rgba(255, 255, 255, .75);
}

.v5-legacy-content .service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ==========================================================
   FAQ
   ========================================================== */

.v5-legacy-content .faq-list {
    display: grid;
    gap: 12px;
}

.v5-legacy-content .faq-list details {
    padding: 20px 22px;

    background: #fff;
    border: 1px solid var(--legacy-line);
    border-radius: 16px;
}

.v5-legacy-content .faq-list summary {
    color: var(--legacy-navy);
    font-weight: 800;
    cursor: pointer;
}


/* ==========================================================
   ARTICLE HERO
   ========================================================== */

.v5-legacy-content .article-hero {
    padding: clamp(70px, 9vw, 125px) 0;

    color: #fff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(255, 106, 0, .18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #07172f,
            #10284e
        );
}

.v5-legacy-content .article-hero h1 {
    max-width: 980px;
    color: #fff;
}

.v5-legacy-content .article-lead,
.v5-legacy-content .article-intro {
    max-width: 820px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.v5-legacy-content .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .65);
    font-size: .92rem;
}


/* ==========================================================
   ARTICLE LAYOUT
   ========================================================== */

.v5-legacy-content .article-shell {
    padding-block: clamp(60px, 8vw, 100px);
}

.v5-legacy-content .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(35px, 5vw, 70px);
    align-items: start;
}

.v5-legacy-content .article-body,
.v5-legacy-content .article-content-section {
    min-width: 0;
}

.v5-legacy-content .article-content-section {
    padding-bottom: 42px;
}

.v5-legacy-content .article-content-section + .article-content-section {
    padding-top: 42px;
    border-top: 1px solid var(--legacy-line);
}

.v5-legacy-content .article-content-section p,
.v5-legacy-content .article-content-section li {
    color: #3f4e64;
}

.v5-legacy-content .article-content-section a {
    color: var(--legacy-orange-dark);
    font-weight: 700;
}


/* ==========================================================
   ARTICLE SIDEBAR
   ========================================================== */

.v5-legacy-content .article-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.v5-legacy-content .article-side-card,
.v5-legacy-content .article-author-card {
    padding: 22px;

    background: #fff;
    border: 1px solid var(--legacy-line);
    border-radius: 18px;

    box-shadow: 0 12px 36px rgba(8, 25, 52, .05);
}

.v5-legacy-content .article-toc {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v5-legacy-content .article-toc a {
    display: block;
    padding: 7px 0;
    color: var(--legacy-muted);
    text-decoration: none;
}

.v5-legacy-content .article-toc a:hover {
    color: var(--legacy-orange);
}


/* ==========================================================
   TABLES
   ========================================================== */

.v5-legacy-content .article-table-wrap {
    overflow-x: auto;
    margin: 26px 0;
    border: 1px solid var(--legacy-line);
    border-radius: 16px;
}

.v5-legacy-content .article-table {
    width: 100%;
    border-collapse: collapse;
}

.v5-legacy-content .article-table th,
.v5-legacy-content .article-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--legacy-line);
    text-align: left;
    vertical-align: top;
}

.v5-legacy-content .article-table th {
    color: var(--legacy-navy);
    background: var(--legacy-soft);
}


/* ==========================================================
   ARTICLE RELATED / POPULAR
   ========================================================== */

.v5-legacy-content .article-related-section,
.v5-legacy-content .article-faq-section {
    background: var(--legacy-soft);
}

.v5-legacy-content .article-popular {
    display: grid;
    gap: 12px;
}

.v5-legacy-content .article-action,
.v5-legacy-content .more {
    color: var(--legacy-orange-dark);
    font-weight: 800;
    text-decoration: none;
}


/* ==========================================================
   ARTICLE CTA
   ========================================================== */

.v5-legacy-content .article-enterprise-cta {
    padding-block: clamp(65px, 8vw, 100px);
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(255, 106, 0, .18),
            transparent 32%
        ),
        #081a37;
}

.v5-legacy-content .article-enterprise-cta h2,
.v5-legacy-content .article-enterprise-cta h3 {
    color: #fff;
}

.v5-legacy-content .article-enterprise-cta p {
    color: rgba(255, 255, 255, .75);
}

.v5-legacy-content .article-cta-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 50px;
    align-items: center;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 980px) {
    .v5-legacy-content .split,
    .v5-legacy-content .article-layout,
    .v5-legacy-content .article-cta-layout {
        grid-template-columns: 1fr;
    }

    .v5-legacy-content .article-sidebar {
        position: static;
    }

    .v5-legacy-content .cards,
    .v5-legacy-content .service-component-grid,
    .v5-legacy-content .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .v5-legacy-content .container {
        width: min(100% - 28px, 1180px);
    }

    .v5-legacy-content .cards,
    .v5-legacy-content .service-component-grid,
    .v5-legacy-content .process-grid {
        grid-template-columns: 1fr;
    }

    .v5-legacy-content .actions,
    .v5-legacy-content .hero-actions,
    .v5-legacy-content .article-actions,
    .v5-legacy-content .article-cta-actions,
    .v5-legacy-content .service-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .v5-legacy-content .btn,
    .v5-legacy-content a.btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v5-legacy-content *,
    .v5-legacy-content *::before,
    .v5-legacy-content *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* ==========================================================
   ARTICLE COMPATIBILITY — FINAL SELECTORS
   ========================================================== */

/*
 * Article section wrapper.
 */
.v5-legacy-content .article-section {
    position: relative;
    padding-block: 42px;
}

.v5-legacy-content .article-section:first-child {
    padding-top: 0;
}

.v5-legacy-content .article-section + .article-section {
    border-top: 1px solid var(--legacy-line);
}


/*
 * Article details / metadata grouping.
 */
.v5-legacy-content .article-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;

    margin-top: 20px;

    color: var(--legacy-muted);
    font-size: .9rem;
}

.v5-legacy-content .article-details > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/*
 * Author logo / identity.
 */
.v5-legacy-content .article-author-logo {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    overflow: hidden;

    background: var(--legacy-soft);
    border: 1px solid var(--legacy-line);
    border-radius: 16px;
}

.v5-legacy-content .article-author-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/*
 * Category badge used by article cards.
 */
.v5-legacy-content .article-card-category {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 10px;
    padding: 6px 10px;

    color: var(--legacy-orange-dark);
    background: rgba(255, 106, 0, .09);
    border: 1px solid rgba(255, 106, 0, .16);
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
}


/*
 * Copy-link status / feedback.
 */
.v5-legacy-content .article-copy-status {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    color: var(--legacy-muted);
    font-size: .82rem;
    font-weight: 700;
}


/*
 * Article CTA copy.
 */
.v5-legacy-content .article-cta-copy {
    max-width: 720px;
}

.v5-legacy-content .article-cta-copy h2,
.v5-legacy-content .article-cta-copy h3 {
    margin-bottom: 14px;
}

.v5-legacy-content .article-cta-copy p {
    margin-bottom: 22px;
}


/*
 * Telephone CTA.
 */
.v5-legacy-content .article-phone-button {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
}

.v5-legacy-content .article-phone-button:hover,
.v5-legacy-content .article-phone-button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .55);
}


/*
 * Reading progress.
 *
 * Width may be modified by existing article JavaScript.
 */
.v5-legacy-content .article-progress {
    position: sticky;
    top: 0;
    z-index: 80;

    width: 100%;
    height: 4px;

    overflow: hidden;

    background: rgba(9, 26, 53, .08);
}

.v5-legacy-content .article-progress::before {
    content: "";

    display: block;

    width: var(--article-progress, 0%);
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--legacy-orange),
            #ff8a24
        );

    transition: width .12s linear;
}


/* ==========================================================
   FINAL MOBILE TUNING
   ========================================================== */

@media (max-width: 680px) {
    .v5-legacy-content .article-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .v5-legacy-content .article-section {
        padding-block: 32px;
    }

    .v5-legacy-content .article-author-logo {
        width: 48px;
        height: 48px;
    }
}
