/*################=============================================================
* CodeGaon polish & responsive overrides
* Loaded last so it wins over theme styles. Keep page-specific rules here
* instead of editing the large style.css.
=============================================================############## */

:root {
    --cg-primary: #0762f8;
    --cg-primary-dark: #0a4fd1;
    --cg-dark: #0c1923;
    --cg-text: #444;
    --cg-radius: 14px;
    --cg-shadow: 0 10px 30px rgba(12, 25, 35, 0.08);
    --cg-shadow-hover: 0 18px 40px rgba(7, 98, 248, 0.16);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cg-primary);
    outline-offset: 2px;
}

/* Anchor targets land below the sticky header */
[id] {
    scroll-margin-top: 80px;
}

/* ---------- Headings (SEO: one h1 per page, look unchanged) ---------- */
@media (min-width: 1200px) {
    .section_main_title h2 {
        font-size: 42px;
    }
}

.section_sub_title h1 {
    letter-spacing: 5px;
    color: #0c5adb;
    font-size: 16px;
}

.cg-h3 {
    font-size: 30px;
}

/* Counter numbers were h1s; now plain text styled the same */
.countr_text .countr_num {
    margin: 11px 0 0;
    font-family: 'Muli', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: #232323;
}

.white .countr_text .countr_num {
    color: #fff;
}

/* ---------- Desktop header ---------- */
.techno_menu > ul > li > a {
    position: relative;
}

.techno_menu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width .25s ease, left .25s ease;
}

.techno_menu > ul > li > a:hover::after {
    left: 15%;
    width: 70%;
}

.techno_nav_manu.sticky {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* ---------- Mobile header (meanmenu) ---------- */
.mobile-menu-area {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.mean-container .mean-bar {
    background: linear-gradient(90deg, #0a2a8a 0%, var(--cg-primary) 100%);
}

/* Show the real logo instead of the "CodeGaon" text */
.mean-container .mean-bar::before {
    content: "";
    top: 50%;
    left: 15px;
    width: 150px;
    height: 44px;
    transform: translateY(-50%);
    background: url("../images/brand/Codegaon%20Logo_Icon,%20Typography%20&%20White%20Tagline.png") no-repeat left center / contain;
}

.mean-container a.meanmenu-reveal {
    padding: 19px 16px;
}

.mean-container .mean-nav {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mean-container .mean-nav ul li {
    border-top: 1px solid #eef0f4;
}

.mean-container .mean-nav ul li a {
    font-size: 14px;
    letter-spacing: .5px;
    padding: 14px 5%;
}

/* ---------- Hero ---------- */
.slider_text_desc p {
    max-width: 560px;
}

/* ---------- Feature cards ---------- */
.feature_style_five {
    border-radius: var(--cg-radius);
    transition: transform .3s ease, box-shadow .3s ease;
    height: calc(100% - 30px);
}

.feature_style_five:hover {
    transform: translateY(-6px);
    box-shadow: var(--cg-shadow-hover);
}

/* ---------- Process ---------- */
/* Darken the photo so the white step text stays readable */
.how_it_work {
    position: relative;
}

.how_it_work::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 25, 35, 0.55);
    pointer-events: none;
}

.how_it_work > .container {
    position: relative;
    z-index: 1;
}

/* ---------- EIMS pricing ---------- */
.cg-pricing {
    position: relative;
    padding: 90px 0 70px;
    background:
        radial-gradient(900px 400px at 10% 0%, rgba(7, 98, 248, 0.08), transparent 60%),
        radial-gradient(700px 400px at 100% 100%, rgba(108, 63, 245, 0.08), transparent 60%),
        #f6f8fc;
    overflow: hidden;
}

.cg-pricing-intro {
    max-width: 640px;
    margin: 0 auto 50px;
    text-align: center;
}

.cg-pricing-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 50px;
    background: rgba(7, 98, 248, 0.1);
    color: var(--cg-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cg-pricing-intro h2 {
    margin-bottom: 14px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--cg-dark);
}

.cg-pricing-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #5b6573;
}

.cg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px 30px;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--cg-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cg-plan:hover {
    transform: translateY(-6px);
    box-shadow: var(--cg-shadow-hover);
}

.cg-plan--featured {
    border: 0;
    color: #fff;
    background: linear-gradient(160deg, #0a2a8a 0%, var(--cg-primary) 55%, #6c3ff5 100%);
    box-shadow: 0 24px 50px rgba(7, 98, 248, 0.35);
}

.cg-plan-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    padding: 5px 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    background: #ffd166;
    color: #3a2a00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.cg-plan-name {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--cg-dark);
}

.cg-plan-tagline {
    min-height: 48px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6573;
}

.cg-plan-amount {
    display: flex;
    align-items: flex-start;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: var(--cg-dark);
}

.cg-plan-currency {
    margin: 6px 4px 0 0;
    font-size: 24px;
    font-weight: 700;
}

.cg-plan-period {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #7a8494;
}

.cg-plan-recurring {
    margin: 18px 0 24px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f2f5fb;
    font-size: 15px;
    color: #5b6573;
}

.cg-plan-recurring strong {
    font-size: 18px;
    color: var(--cg-dark);
}

.cg-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 2px solid var(--cg-primary);
    border-radius: 12px;
    color: var(--cg-primary);
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.cg-plan-btn:hover {
    background: var(--cg-primary);
    color: #fff;
}

.cg-plan-btn i {
    transition: transform .25s ease;
}

.cg-plan-btn:hover i {
    transform: translateX(4px);
}

.cg-plan-btn--solid {
    border-color: #fff;
    background: #fff;
    color: var(--cg-primary);
}

.cg-plan-btn--solid:hover {
    border-color: #ffd166;
    background: #ffd166;
    color: #3a2a00;
}

.cg-plan-includes {
    margin: 26px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--cg-dark);
}

.cg-plan-includes i {
    margin-right: 8px;
    color: var(--cg-primary);
}

.cg-plan-features {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.cg-plan-includes + .cg-plan-features {
    margin-top: 12px;
}

.cg-plan-features li {
    position: relative;
    padding: 7px 0 7px 30px;
    font-size: 15px;
    line-height: 1.5;
    color: #444c58;
}

.cg-plan-features li i {
    position: absolute;
    top: 10px;
    left: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(7, 98, 248, 0.1);
    color: var(--cg-primary);
    font-size: 10px;
}

/* Featured card colour overrides */
.cg-plan--featured .cg-plan-name,
.cg-plan--featured .cg-plan-amount,
.cg-plan--featured .cg-plan-recurring strong,
.cg-plan--featured .cg-plan-includes {
    color: #fff;
}

.cg-plan--featured .cg-plan-tagline,
.cg-plan--featured .cg-plan-period,
.cg-plan--featured .cg-plan-features li {
    color: rgba(255, 255, 255, 0.85);
}

.cg-plan--featured .cg-plan-recurring {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.cg-plan--featured .cg-plan-includes i,
.cg-plan--featured .cg-plan-features li i {
    color: #fff;
}

.cg-plan--featured .cg-plan-features li i {
    background: rgba(255, 255, 255, 0.2);
}

.cg-pricing-note {
    margin: 20px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 15px;
    color: #5b6573;
}

.cg-pricing-note a {
    font-weight: 700;
    color: var(--cg-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- EIMS FAQ ---------- */
.cg-faq {
    padding: 80px 0;
    background: #fff;
}

.cg-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.cg-faq-item {
    margin-bottom: 14px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    background: #fff;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.cg-faq-item[open] {
    border-color: rgba(7, 98, 248, 0.35);
    box-shadow: var(--cg-shadow);
}

.cg-faq-item summary {
    position: relative;
    padding: 20px 56px 20px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--cg-dark);
}

.cg-faq-item summary::-webkit-details-marker {
    display: none;
}

.cg-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(7, 98, 248, 0.1);
    color: var(--cg-primary);
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform .25s ease;
}

.cg-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.cg-faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #5b6573;
}

/* ---------- Portfolio ---------- */
.single_portfolio_thumb {
    border-radius: var(--cg-radius);
    overflow: hidden;
}

.single_portfolio_thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.portfolio_menu ul li {
    border-radius: 50px;
}

/* Project cards (common/portfolio.php). Fixed-height text blocks keep every
   card the same height, so the isotope masonry lays out as a clean grid. */
.cg-portfolio .portfolio_nav ul li {
    margin: 0 5px 10px;
    padding: 11px 22px;
    letter-spacing: .5px;
    font-size: 15px;
}

.cg-project {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--cg-shadow);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.cg-project:hover {
    transform: translateY(-6px);
    box-shadow: var(--cg-shadow-hover);
}

.cg-project-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #eef2f8;
    cursor: pointer;
    overflow: hidden;
}

.cg-project-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.cg-project:hover .cg-project-thumb img {
    transform: scale(1.04);
}

.cg-project-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cg-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(12, 25, 35, 0.12);
}

.cg-project-body {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.cg-project-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--cg-dark);
}

.cg-project-summary {
    display: -webkit-box;
    height: calc(1.6em * 3);
    margin: 0 0 16px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: #5b6573;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.cg-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cg-project-body .cg-project-tags {
    height: 28px;
    overflow: hidden;
}

.cg-project-tags li {
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f4f9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 20px;
}

.cg-project-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cg-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cg-project-more i {
    transition: transform .25s ease;
}

.cg-project-more:hover i {
    transform: translateX(4px);
}

/* Project detail dialog */
.cg-modal-open {
    overflow: hidden;
}

.cg-project-modal {
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(12, 25, 35, 0.35);
    overflow: auto;
}

.cg-project-modal[open] {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    animation: cg-modal-in .25s ease;
}

.cg-project-modal::backdrop {
    background: rgba(12, 25, 35, 0.6);
    backdrop-filter: blur(3px);
}

@keyframes cg-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
}

.cg-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cg-dark);
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(12, 25, 35, 0.15);
    cursor: pointer;
}

.cg-modal-media {
    background: #eef2f8;
}

.cg-modal-media img {
    position: sticky;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.cg-modal-content {
    padding: 34px 32px 30px;
}

.cg-modal-content h3 {
    margin: 4px 0 4px;
    font-size: 28px;
    font-weight: 800;
    color: var(--cg-dark);
}

.cg-modal-subtitle {
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--cg-primary);
}

.cg-modal-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #5b6573;
}

.cg-modal-content h4 {
    margin: 22px 0 6px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--cg-dark);
}

.cg-modal-content .cg-plan-features {
    margin-top: 8px;
}

.cg-modal-meta {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.cg-modal-meta .cg-project-tags {
    margin-top: 10px;
}

.cg-modal-meta p {
    margin: 10px 0 0;
}

.cg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.cg-modal-actions .cg-plan-btn {
    padding: 11px 18px;
    font-size: 14px;
}

.cg-plan-btn--fill {
    background: var(--cg-primary);
    color: #fff;
}

.cg-plan-btn--fill:hover {
    border-color: var(--cg-primary-dark);
    background: var(--cg-primary-dark);
}

@media (max-width: 767.98px) {
    .cg-project-modal[open] {
        display: block;
    }

    .cg-modal-media img {
        position: static;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .cg-modal-content {
        padding: 24px 20px;
    }

    .cg-modal-content h3 {
        font-size: 24px;
    }

    .cg-modal-meta {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cg-modal-actions .cg-plan-btn {
        flex: 1 1 100%;
    }
}

/* ---------- Testimonials ---------- */
.single_testimonial_content_text {
    border-radius: var(--cg-radius);
}

/* ---------- Footer ---------- */
.footer .our_address {
    margin-bottom: 30px;
}

.footer .our_address a {
    word-break: break-word;
}

.social-icon {
    transition: transform .25s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* ---------- Page banners ---------- */
.banner-common {
    margin-left: 0;
    margin-right: 0;
}

/* ---------- Floating CTA buttons ---------- */
.whatsapp-button {
    transition: background-color .3s ease, transform .2s ease;
}

.whatsapp-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

/*################=============================================================
* Tablet & below (< 992px)
=============================================================############## */
@media (max-width: 991.98px) {

    /* Fixed backgrounds are janky / unsupported on mobile browsers */
    .bg_fixed,
    [style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }

    .slider_area.slider8 {
        height: auto;
        min-height: 0;
        padding: 90px 0 170px;
        background-size: 75% auto;
        background-position: right bottom;
    }

    .slider_text_inner h1 {
        font-size: 48px;
        line-height: 1.15;
    }

    .nagative_margin {
        margin-top: -80px;
    }

    .feature_style_five {
        padding-left: 20px;
        padding-right: 20px;
    }

    .how_it_work {
        background-size: cover !important;
        background-position: center !important;
    }

    .section_main_title h1,
    .section_main_title h2 {
        font-size: 34px;
        line-height: 1.25;
    }

    .about_area .col-lg-6 + .col-lg-6 {
        margin-top: 30px;
    }

    .cg-pricing {
        padding: 70px 0 50px;
    }

    .cg-pricing-intro h2 {
        font-size: 32px;
    }

    .cg-plan-tagline {
        min-height: 0;
    }
}

/*################=============================================================
* Phones (< 768px)
=============================================================############## */
@media (max-width: 767.98px) {

    .slider_area.slider8 {
        padding: 50px 0 200px;
        background-size: 100% auto;
        text-align: left;
    }

    /* Soft fade so the hero copy stays readable over the image */
    .slider_area.slider8::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0) 65%);
        pointer-events: none;
    }

    .slider_area.slider8 .container {
        position: relative;
        z-index: 1;
    }

    .slider_text_inner h1 {
        font-size: 34px;
    }

    .slider_text_desc p {
        font-size: 16px;
        line-height: 1.7;
    }

    .nagative_margin {
        margin-top: -40px;
    }

    .section_main_title h1,
    .section_main_title h2 {
        font-size: 28px;
    }

    .section_sub_title h6 {
        letter-spacing: 3px;
    }

    .pt-80,
    .pt-90,
    .pt-95 {
        padding-top: 60px !important;
    }

    .pb-100 {
        padding-bottom: 60px !important;
    }

    /* Portfolio filter becomes a swipeable chip row */
    .portfolio_menu ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio_menu ul::-webkit-scrollbar {
        display: none;
    }

    .portfolio_menu ul li {
        flex: 0 0 auto;
        margin: 0 !important;
        white-space: nowrap;
        padding: 8px 18px;
        font-size: 14px;
    }

    .countr_text .countr_num {
        font-size: 32px;
    }

    .cg-pricing-intro h2 {
        font-size: 28px;
    }

    .cg-plan {
        padding: 28px 22px;
    }

    .cg-plan-amount {
        font-size: 40px;
    }

    .footer .our_address {
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer .our_address h4 {
        margin-bottom: 10px;
    }

    /* Compact sticky CTA bar instead of stacked full-width blocks */
    .fixed-button-group {
        flex-direction: row;
        flex-wrap: nowrap;
        bottom: 0;
        left: 0;
        gap: 0;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    }

    .fixed-button-group .whatsapp-button {
        flex: 1 1 0;
        width: auto;
        border-radius: 0;
        padding: 12px 6px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
        box-shadow: none;
    }

    .fixed-button-group .whatsapp-button i {
        font-size: 16px;
        margin-right: 6px;
    }

    body:has(.fixed-button-group) {
        padding-bottom: 46px;
    }

    body:has(.fixed-button-group) #scrollUp {
        bottom: 60px !important;
    }
}

@media (max-width: 400px) {
    .slider_text_inner h1 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* EIMS feature group titles are h2s now; keep their original look */
h2.emis-heading {
    margin-top: 0;
    line-height: inherit;
    transition: none;
}
