/*
 * Nity Pro — visual system shared by every public page.
 * Complements the Choicy theme without modifying vendor files.
 */
:root {
    --np-ink: #101828;
    --np-navy: #111b38;
    --np-navy-soft: #18264d;
    --np-blue: #3448c5;
    --np-yellow: #ffca0a;
    --np-paper: #f6f7fb;
    --np-muted: #667085;
    --np-line: #e5e9f1;
    --np-white: #fff;
    --np-radius: 20px;
    --np-shadow: 0 18px 55px rgba(16, 24, 40, .08);
}

html {
    scroll-behavior: smooth;
}

body.site-page {
    overflow-x: hidden;
    background: var(--np-white);
    color: var(--np-ink);
}

body.site-page a {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

body.site-page .chy-container-1,
body.site-page .chy-container-2,
body.site-page .chy-container {
    width: min(100% - 30px, 1320px);
    max-width: 1320px;
    margin-inline: auto;
}

/* Header */
.site-page .chy-header-4-area {
    z-index: 99;
}

.site-page .chy-header-4-wrap {
    margin: 16px auto 0;
    width: min(100% - 32px, 1500px);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 17px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 40px rgba(16, 24, 40, .09);
    backdrop-filter: blur(18px);
}

.site-page .chy-header-4-wrap .chy-logo {
    padding-left: 22px;
}

.site-page .chy-main-menu-1 .main-navigation li a {
    font-weight: 700;
}

.site-page .chy-header-4-area .dropdown-menu {
    overflow: hidden;
    padding: 10px;
    border: 1px solid var(--np-line);
    border-radius: 14px;
    box-shadow: var(--np-shadow);
}

.site-page .chy-header-4-area .dropdown-menu li a {
    border-radius: 8px;
}

.site-page .chy-pr-btn-1,
.site-page .chy-pr-btn-5 {
    border-radius: 9px;
    box-shadow: none;
}

.site-page .chy-pr-btn-1:hover,
.site-page .chy-pr-btn-5:hover {
    transform: translateY(-2px);
}

/* Reusable interior hero — overrides legacy inline imagery */
.site-page .breadcrumb-area {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 195px 0 90px !important;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 77% 15%, rgba(73,96,255,.32), transparent 31%),
        linear-gradient(135deg, #0c142d 0%, #131f43 58%, #172650 100%) !important;
    background-size: 54px 54px, 54px 54px, auto, auto !important;
}

.site-page .breadcrumb-area::before {
    position: absolute;
    top: 115px;
    left: -75px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,202,10,.12);
    content: "";
}

.site-page .breadcrumb-area::after {
    position: absolute;
    right: -100px;
    bottom: -280px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    background: transparent;
    content: "";
}

.site-page .breadcrumb-wrap {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: auto;
}

.site-page .breadcrumb-title {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.site-page .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
}

.site-page .breadcrumb-list a,
.site-page .breadcrumb-list span {
    position: relative;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.site-page .breadcrumb-list a:hover {
    color: var(--np-yellow);
}

.site-page .breadcrumb-list a:not(:last-child)::after {
    position: absolute;
    right: -12px;
    color: rgba(255,255,255,.35);
    content: "/";
}

/* Typography and section rhythm */
.site-page .chy-title-1,
.site-page .chy-title-4 {
    color: var(--np-ink);
    letter-spacing: -.035em;
}

.site-page .chy-subtitle-1,
.site-page .chy-subtitle-4 {
    color: var(--np-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.site-page .chy-para-1,
.site-page .chy-para-4 {
    color: var(--np-muted);
    line-height: 1.75;
}

.site-page .section-title-wrap {
    max-width: 820px;
}

.site-page .section-title-wrap.text-center {
    margin-right: auto;
    margin-left: auto;
}

.site-page .section-title-wrap .chy-title-1,
.site-page .section-title-wrap .chy-title-4 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
}

/* Generic cards */
.site-page .chy-services-1-item,
.site-page .chy-blog-1-item,
.site-page .blog-page-item,
.site-page .sidebar-box {
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    background: #fff;
    box-shadow: 0 12px 42px rgba(16,24,40,.055);
}

.site-page .chy-services-1-item,
.site-page .chy-blog-1-item,
.site-page .blog-page-item {
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-page .chy-services-1-item:hover,
.site-page .chy-blog-1-item:hover,
.site-page .blog-page-item:hover {
    border-color: rgba(52,72,197,.24);
    box-shadow: 0 24px 60px rgba(16,24,40,.1);
    transform: translateY(-7px);
}

/* Services listing */
.page-services .chy-trusted-2-area {
    background: var(--np-navy);
    color: #fff;
}

.page-services .chy-trusted-2-content .title,
.page-services .chy-trusted-2-slider-item .title {
    color: #fff;
}

.page-services .chy-trusted-2-content .disc,
.page-services .chy-trusted-2-slider-item .disc {
    color: rgba(255,255,255,.7);
}

.page-services .chy-services-1-area {
    background: var(--np-paper);
}

.page-services .chy-services-1-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.page-services .chy-services-1-item {
    width: auto !important;
    min-height: 100%;
    margin: 0 !important;
    padding: 32px;
}

.page-services .chy-services-1-item .header {
    height: 100%;
}

.page-services .chy-services-1-item .icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 17px;
    background: var(--np-navy);
    color: var(--np-yellow);
}

.page-services .chy-services-1-item .title {
    margin-bottom: 13px;
    font-size: 22px;
}

.page-services .chy-services-1-item .disc {
    min-height: 105px;
    margin-bottom: 22px !important;
    font-size: 15px;
}

.page-services .chy-services-1-item .chy-pr-btn-1 {
    min-width: 115px;
}

/* Blog cards and articles */
.page-blog .blog-page-area,
.page-blog .blog-details-area {
    background: var(--np-paper);
}

.page-blog .blog-page-item {
    margin-bottom: 30px;
    padding: 0;
}

.page-blog .blog-page-item .main-img {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.page-blog .blog-page-item .main-img img {
    width: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform .5s ease;
}

.page-blog .blog-page-item:hover .main-img img {
    transform: scale(1.035);
}

.page-blog .blog-page-item .content {
    padding: 34px;
}

.page-blog .blog-page-item .title {
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.page-blog .blog-page-item .meta {
    color: var(--np-blue);
}

.page-blog .page-next-prev-btn a,
.page-blog .page-next-prev-btn span {
    display: inline-flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    margin: 4px;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    background: #fff;
    color: var(--np-ink);
}

.page-blog .page-next-prev-btn .active,
.page-blog .page-next-prev-btn a:hover {
    border-color: var(--np-blue);
    background: var(--np-blue);
    color: #fff;
}

.page-blog .blog-details-content {
    padding: clamp(25px, 5vw, 65px);
    border: 1px solid var(--np-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--np-shadow);
}

.page-blog .blog-details-content > .main-img {
    overflow: hidden;
    margin: -20px -20px 40px;
    border-radius: 18px;
}

.page-blog .blog-details-content .disc,
.page-blog .blog-details-content p,
.page-blog .blog-details-content li {
    color: #586174;
    font-size: 17px;
    line-height: 1.85;
}

.page-blog .blog-details-content h2,
.page-blog .blog-details-content h3 {
    margin: 38px 0 16px;
    color: var(--np-ink);
    line-height: 1.25;
}

.page-blog .blog-details-blockquote-1 {
    border-left: 4px solid var(--np-yellow);
    border-radius: 0 16px 16px 0;
    background: var(--np-paper);
}

/* Agencies */
.page-agences .blog-page-2-area {
    background: var(--np-paper);
}

.page-agences .chy-blog-1-item {
    height: calc(100% - 28px);
    margin-bottom: 28px;
    padding: 0 0 27px;
}

.page-agences .chy-blog-1-item .main-img {
    overflow: hidden;
    height: 235px;
    border-radius: 19px 19px 0 0;
}

.page-agences .chy-blog-1-item .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.page-agences .chy-blog-1-item:hover .main-img img {
    transform: scale(1.04);
}

.page-agences .chy-blog-1-item > .date,
.page-agences .chy-blog-1-item > .title,
.page-agences .chy-blog-1-item > .disc,
.page-agences .chy-blog-1-item > .author {
    margin-right: 27px;
    margin-left: 27px;
}

.page-agences .chy-blog-1-item > .date {
    display: inline-block;
    margin-top: 24px;
    margin-bottom: 8px !important;
    color: var(--np-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.page-agences .chy-blog-1-item > .title {
    font-size: 26px;
}

.page-agences .chy-blog-1-item > .disc {
    margin-bottom: 20px !important;
    font-size: 14px;
}

.page-agences .chy-blog-1-item .author {
    display: none;
}

.page-agence .projects-details,
.page-agence .team-details-area,
.page-agence .projects-details-wrap-2 {
    background: #fff;
}

.page-agence .projects-details-wrap-2,
.page-agence .team-details-person-wrap,
.page-agence .contact-form-wrap {
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 24px;
    box-shadow: var(--np-shadow);
}

.page-agence .projects-details-feature-list li {
    margin-bottom: 12px;
    color: var(--np-muted);
}

.page-agence .projects-details-feature-list i {
    color: var(--np-yellow);
}

/* Portfolio */
.page-portfolio .project-page-area {
    background: var(--np-paper);
}

.page-portfolio .project-page-item {
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 25px;
    background: #fff;
    box-shadow: var(--np-shadow);
}

.page-portfolio .project-page-item .main-img {
    overflow: hidden;
    border-radius: 22px;
}

.page-portfolio .project-page-item .main-img img {
    transition: transform .6s ease;
}

.page-portfolio .project-page-item:hover .main-img img {
    transform: scale(1.025);
}

.page-portfolio .project-page-item .number {
    color: var(--np-yellow);
}

.page-portfolio .project-page-item .content-wrap {
    background: rgba(17,27,56,.95);
    backdrop-filter: blur(10px);
}

.page-portfolio .project-page-item .title,
.page-portfolio .project-page-item .subtitle {
    color: #fff;
}

/* FAQ */
.page-faq .chy-faq-page-area {
    background: var(--np-paper) !important;
}

.page-faq .chy-faq-page-content {
    padding-right: 45px;
}

.page-faq .accordion-item {
    overflow: hidden;
    border: 1px solid var(--np-line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16,24,40,.04);
}

.page-faq .accordion-button {
    padding: 22px 25px;
    background: #fff;
    color: var(--np-ink);
    font-size: 17px;
    font-weight: 750;
    box-shadow: none !important;
}

.page-faq .accordion-button:not(.collapsed) {
    background: var(--np-navy);
    color: #fff;
}

.page-faq .accordion-body {
    padding: 22px 25px 26px;
    color: var(--np-muted);
    line-height: 1.75;
}

/* Forms */
.site-page form label {
    display: block;
    margin-bottom: 8px;
    color: var(--np-ink);
    font-size: 14px;
    font-weight: 750;
}

.site-page form .form-control,
.site-page form input,
.site-page form select,
.site-page form textarea {
    min-height: 55px;
    padding: 13px 16px;
    border: 1px solid #dfe3eb;
    border-radius: 10px;
    background: #fff;
    color: var(--np-ink);
    box-shadow: none;
}

.site-page form textarea.form-control,
.site-page form textarea {
    min-height: 160px;
    resize: vertical;
}

.site-page form .form-control:focus,
.site-page form input:focus,
.site-page form select:focus,
.site-page form textarea:focus {
    border-color: var(--np-blue);
    box-shadow: 0 0 0 4px rgba(52,72,197,.1);
    outline: none;
}

.np-form-card {
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--np-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--np-shadow);
}

.np-contact-card {
    height: 100%;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 95% 5%, rgba(255,202,10,.18), transparent 25%),
        var(--np-navy);
    color: #fff;
}

.np-contact-card h2,
.np-contact-card h3 {
    color: #fff;
}

.np-contact-card > p {
    color: rgba(255,255,255,.68);
    line-height: 1.75;
}

.np-contact-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.np-contact-list li {
    display: flex;
    gap: 14px;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.np-contact-list i {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255,202,10,.13);
    color: var(--np-yellow);
}

.np-contact-list small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.np-contact-list a,
.np-contact-list span {
    color: #fff;
    font-weight: 700;
}

/* Rich generic content pages */
.np-content {
    padding: 110px 0;
    background: var(--np-paper);
}

.np-content-intro {
    max-width: 780px;
    margin: 0 auto 55px;
    text-align: center;
}

.np-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--np-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.np-kicker::before {
    width: 24px;
    height: 3px;
    border-radius: 20px;
    background: var(--np-yellow);
    content: "";
}

.np-content-intro h2 {
    margin-bottom: 17px;
    color: var(--np-ink);
    font-size: clamp(34px, 4vw, 51px);
    line-height: 1.13;
    letter-spacing: -.04em;
}

.np-content-intro p {
    color: var(--np-muted);
    font-size: 17px;
    line-height: 1.75;
}

.np-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.np-content-card {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--np-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(16,24,40,.055);
}

.np-content-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
}

.np-content-card__number {
    position: absolute;
    top: 26px;
    right: 30px;
    color: #e0e4ec;
    font-size: 17px;
    font-weight: 800;
}

.np-content-card__icon {
    display: flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 15px;
    background: var(--np-navy);
    color: var(--np-yellow);
    font-size: 20px;
}

.np-content-card h2 {
    margin-bottom: 15px;
    color: var(--np-ink);
    font-size: 25px;
    line-height: 1.25;
}

.np-content-card p {
    margin-bottom: 15px;
    color: var(--np-muted);
    line-height: 1.78;
}

.np-content-card ul {
    margin: 21px 0 0;
    padding: 21px 0 0;
    border-top: 1px solid var(--np-line);
    list-style: none;
}

.np-content-card li {
    display: flex;
    gap: 11px;
    margin: 11px 0;
    color: #485165;
    line-height: 1.55;
}

.np-content-card li i {
    margin-top: 5px;
    color: #e9ae00;
    font-size: 12px;
}

.np-content-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 45px;
    padding: 42px 46px;
    border-radius: 21px;
    background:
        radial-gradient(circle at 90% 5%, rgba(255,202,10,.18), transparent 24%),
        var(--np-navy);
}

.np-content-cta h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 30px;
}

.np-content-cta p {
    margin: 0;
    color: rgba(255,255,255,.66);
}

.np-content-cta__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.np-content-cta__actions a {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border-radius: 8px;
    font-weight: 800;
}

.np-content-cta__primary {
    background: var(--np-yellow);
    color: var(--np-ink);
}

.np-content-cta__secondary {
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

/* Homepage refinements */
.page-accueil .chy-hero-4-area {
    background-color: #f4f6fb;
}

.page-accueil .chy-hero-4-content-wrap,
.page-accueil .chy-about-4-img,
.page-accueil .chy-solution-4-img,
.page-accueil .chy-project-4-content {
    border-radius: 22px;
}

.page-accueil .chy-services-5-area {
    background: var(--np-paper);
}

.page-accueil .chy-services-5-item {
    border-color: var(--np-line);
}

.page-accueil .chy-blog-4-item {
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16,24,40,.055);
}

/* Footer */
.site-page .chy-footer-3-area {
    position: relative;
    background: #0c142d;
}

.site-page .chy-footer-3-area::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    pointer-events: none;
}

.site-page .chy-footer-3-area .container {
    position: relative;
}

.site-page .chy-footer-3-widget .disc,
.site-page .chy-footer-3-contact a,
.site-page .chy-footer-3-menu a {
    color: rgba(255,255,255,.66);
}

.site-page .chy-footer-3-menu a:hover,
.site-page .chy-footer-3-contact a:hover {
    color: var(--np-yellow);
    transform: translateX(3px);
}

.site-page .chy-footer-3-social a {
    border-radius: 8px;
}

.site-page .chy-footer-3-bottom {
    border-top-color: rgba(255,255,255,.09);
}

/* Responsive */
@media (max-width: 1199px) {
    .page-services .chy-services-1-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .np-content-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 991px) {
    .site-page .chy-header-4-wrap {
        min-height: 74px;
    }

    .site-page .breadcrumb-area {
        min-height: 390px;
        padding-top: 165px !important;
    }

    .site-page .breadcrumb-title {
        font-size: 48px;
    }

    .np-content {
        padding: 85px 0;
    }

    .page-faq .chy-faq-page-content {
        margin-bottom: 40px;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .site-page .chy-header-4-wrap {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .site-page .chy-header-4-wrap .chy-logo {
        padding-left: 10px;
    }

    .site-page .chy-header-4-wrap .chy-logo img {
        width: 145px !important;
    }

    .site-page .breadcrumb-area {
        min-height: 350px;
        padding: 145px 0 65px !important;
    }

    .site-page .breadcrumb-title {
        font-size: 39px;
    }

    .page-services .chy-services-1-wrap,
    .np-content-grid {
        grid-template-columns: 1fr;
    }

    .np-content-card:first-child:nth-last-child(odd) {
        grid-column: auto;
    }

    .np-content {
        padding: 70px 0;
    }

    .np-content-card,
    .np-form-card,
    .np-contact-card {
        padding: 28px 24px;
    }

    .np-content-cta {
        padding: 34px 25px;
    }

    .np-content-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .page-blog .blog-page-item .content {
        padding: 25px;
    }

    .page-portfolio .project-page-item .content-wrap {
        position: relative;
    }
}

@media (max-width: 480px) {
    .site-page .breadcrumb-title {
        font-size: 34px;
    }

    .site-page .breadcrumb-list a:nth-child(n+2) {
        display: none;
    }

    .page-services .chy-services-1-item {
        padding: 27px 23px;
    }
}
