/* ==========================================================================
   site.css - project-level fixes loaded after every theme stylesheet.
   Keep this file small: it only patches gaps in the bundled theme CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header & main menu
   -------------------------------------------------------------------------- */

/* Keep all top-level menu items on one row on desktop (they used to wrap,
   pushing BLOG / CONTACT onto a second line). */
@media (min-width: 992px) {
    .fhmm .navbar-nav > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .fhmm .navbar-nav > li > a {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 12px;
    }
}

/* Logo: reserve the space so the header does not jump while it loads. */
#logo-desktop,
#logo-mobile {
    display: none;
}
@media (min-width: 768px) {
    #logo-desktop {
        display: block;
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 313 / 130;
    }
}
@media (max-width: 767.98px) {
    #logo-mobile {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }
}

/* Mega-menu icon images: fixed box so the menu doesn't reflow as icons load. */
.fhmm .dropdown-menu img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}

/* Top bar contact links */
.topbar .callus a {
    color: inherit;
    margin-right: 12px;
}
.topbar .callus a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   2. Home page slider (Revolution Slider)
   Before the slider script runs, its <ul> of slides renders as a tall
   unstyled list of images and captions. Hide it and reserve the final
   height until the plugin marks the slider as initialised.
   -------------------------------------------------------------------------- */
.fullwidthbanner-container .fullwidthbanner:not(.revslider-initialised) {
    max-height: 550px;
    aspect-ratio: 1170 / 550;
    overflow: hidden;
}
.fullwidthbanner-container .fullwidthbanner:not(.revslider-initialised) > ul {
    visibility: hidden;
}
.fullwidthbanner > ul,
.fullwidthbanner > ul > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   3. Visual Composer grid
   Several marketing pages (Facebook / Google / YouTube ads, SMS, email,
   skills) were exported from WordPress and use vc_* grid classes. The
   460 KB composer.css is not loaded, so define just the grid here.
   -------------------------------------------------------------------------- */
.vc_row:before,
.vc_row:after,
.vc_column-inner:before,
.vc_column-inner:after {
    content: " ";
    display: table;
}
.vc_row:after,
.vc_column-inner:after {
    clear: both;
}
[class*="vc_col-"] {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .vc_col-sm-1, .vc_col-sm-2, .vc_col-sm-3, .vc_col-sm-4,
    .vc_col-sm-5, .vc_col-sm-6, .vc_col-sm-7, .vc_col-sm-8,
    .vc_col-sm-9, .vc_col-sm-10, .vc_col-sm-11, .vc_col-sm-12 {
        float: left;
    }
    .vc_col-sm-1  { width: 8.33333333%; }
    .vc_col-sm-2  { width: 16.66666667%; }
    .vc_col-sm-3  { width: 25%; }
    .vc_col-sm-4  { width: 33.33333333%; }
    .vc_col-sm-5  { width: 41.66666667%; }
    .vc_col-sm-6  { width: 50%; }
    .vc_col-sm-7  { width: 58.33333333%; }
    .vc_col-sm-8  { width: 66.66666667%; }
    .vc_col-sm-9  { width: 75%; }
    .vc_col-sm-10 { width: 83.33333333%; }
    .vc_col-sm-11 { width: 91.66666667%; }
    .vc_col-sm-12 { width: 100%; }
}

/* --------------------------------------------------------------------------
   4. General content safety
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}
/* Content images that declare explicit sizes keep their aspect ratio. */
iframe {
    max-width: 100%;
}
/* Long headings used to overflow on phones (h1 was set to nowrap). */
h1, h2, h3 {
    overflow-wrap: break-word;
}

/* Home page main heading, shown above the four service boxes. */
.home-h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0 30px;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .home-h1 { font-size: 22px; }
}

/* Help-line strip above the footer (was an <h1>, now a styled paragraph). */
.help-line-number {
    color: #86c724;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 10px;
    line-height: 1.2;
    white-space: nowrap;
}
.help-line-number a {
    color: inherit;
}
@media (max-width: 767px) {
    .top .help-number {
        float: none !important;
        padding-left: 0 !important;
    }
    .help-line-number {
        font-size: 28px;
    }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.section-footer ol li,
.section-footer ol li a {
    color: #fff;
}
.section-footer ol li a:hover {
    color: #86c724;
    text-decoration: none;
}
.footer-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}
.footer-social a {
    display: inline-block;
    margin: 0 10px 10px;
    color: #0d6efd;
    transition: transform .2s, color .2s;
}
.footer-social a:hover {
    transform: scale(1.2);
}
.section-footer address {
    color: #fff;
    font-style: normal;
}
.section-footer address a {
    color: #fff;
}

/* Floating chat buttons */
.whatsapp-float,
.telegram-float {
    position: fixed;
    right: 20px;
    z-index: 999;
    border-radius: 50%;
    padding: 10px;
    line-height: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    transition: transform .3s;
}
.whatsapp-float { bottom: 20px; background-color: #25D366; }
.telegram-float { bottom: 90px; background-color: #0088cc; }
.whatsapp-float:hover,
.telegram-float:hover { transform: scale(1.1); }

/* Contact form status message */
#message .alert { margin-top: 10px; }

/* Visually hidden but available to screen readers and search engines */
.sr-only-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Equal-height rows of feature boxes (marketing service pages). */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
}
.feature-grid:before,
.feature-grid:after {
    display: none;
}
.feature-grid > [class*="col-"] {
    float: none;
}

/* Footer link lists and addresses */
.section-footer .footer-links,
.section-footer .footer-links address {
    color: #fff;
}
.section-footer .footer-links a {
    color: #fff;
    background: none;
    padding: 0;
    border: 0;
    font-size: inherit;
}
.section-footer .footer-links a:hover {
    color: #86c724;
}
.section-footer .footer-links ol {
    padding-left: 20px;
}

/* Phones: skewed page-title ribbons stick out a few pixels; don't let them
   create a sideways scroll. */
@media (max-width: 767px) {
    html, body { overflow-x: hidden; }
}

/* --------------------------------------------------------------------------
   Feature icon tiles (used in place of feature illustrations on the
   software / AI / game / design / hardware pages).
   -------------------------------------------------------------------------- */
.feature-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--fv-a), var(--fv-b));
    box-shadow: 0 14px 30px -12px var(--fv-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
/* Soft decorative circles behind the icon */
.feature-visual:before,
.feature-visual:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.feature-visual:before {
    width: 70%;
    aspect-ratio: 1;
    top: -25%;
    right: -20%;
}
.feature-visual:after {
    width: 45%;
    aspect-ratio: 1;
    bottom: -18%;
    left: -12%;
    background: rgba(255, 255, 255, .08);
}
.feature-visual i {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    font-size: 58px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
    text-shadow: 0 6px 14px rgba(0, 0, 0, .18);
    transition: transform .3s ease;
}
.feature-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px -12px var(--fv-shadow);
}
.feature-visual:hover i {
    transform: scale(1.08);
}
.fv-1 { --fv-a: #00a3e8; --fv-b: #0062b1; --fv-shadow: rgba(0, 98, 177, .55); }  /* brand blue */
.fv-2 { --fv-a: #8fd14f; --fv-b: #3d9a2b; --fv-shadow: rgba(61, 154, 43, .5); }  /* brand green */
.fv-3 { --fv-a: #9b6bff; --fv-b: #5a33c9; --fv-shadow: rgba(90, 51, 201, .5); }  /* violet */
.fv-4 { --fv-a: #ffb347; --fv-b: #f2691d; --fv-shadow: rgba(242, 105, 29, .5); } /* orange */
.fv-5 { --fv-a: #2fd3c4; --fv-b: #0b8f8a; --fv-shadow: rgba(11, 143, 138, .5); } /* teal */
.fv-6 { --fv-a: #ff7aa2; --fv-b: #d6336c; --fv-shadow: rgba(214, 51, 108, .5); } /* rose */
@media (max-width: 991px) {
    .feature-visual { max-width: 240px; }
    .feature-visual i { width: 104px; height: 104px; font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-visual, .feature-visual i { transition: none; }
}

/* --------------------------------------------------------------------------
   Main software pages: intro, audience, steps, FAQ and free demo sections
   (content from application/config/service_content.php)
   -------------------------------------------------------------------------- */
.service-intro {
    margin: 10px 0 35px;
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}
.service-intro p { margin-bottom: 14px; }
.service-intro-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 20px;
}
.service-intro-actions .btn { border-radius: 30px; padding: 10px 24px; font-size: 16px; }
.service-intro-actions .btn i { margin-right: 6px; }
.service-wa-btn { background: #25D366; border-color: #25D366; }
.service-wa-btn:hover, .service-wa-btn:focus { background: #1ebe57; border-color: #1ebe57; }
.service-price { color: #555; font-size: 15px; }
.service-price i { color: #008DD2; margin-right: 4px; }
.service-clients { margin-top: 18px; color: #2e7d32; font-weight: 600; }
.service-clients i { margin-right: 6px; }

.service-section { padding: 55px 0; }
.service-section-alt { background: #f5f8fb; }
.service-heading {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 35px;
}

.audience-card {
    height: 100%;
    margin-bottom: 25px;
    padding: 28px 22px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 40, 80, .08);
    transition: transform .25s, box-shadow .25s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 40, 80, .14); }
.audience-card h3 { font-size: 18px; font-weight: 700; color: #2c3e50; margin: 16px 0 8px; }
.audience-card p { color: #666; margin: 0; }
.audience-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, var(--fv-a), var(--fv-b));
    box-shadow: 0 10px 20px -8px var(--fv-shadow);
}

.service-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0;
    margin: 0;
}
.service-steps li {
    counter-increment: step;
    flex: 1 1 220px;
    position: relative;
    padding: 50px 22px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 40, 80, .08);
}
.service-steps li:before {
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 22px;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00a3e8, #0062b1);
    box-shadow: 0 8px 16px -6px rgba(0, 98, 177, .6);
}
.service-steps h3 { font-size: 18px; font-weight: 700; color: #2c3e50; margin: 0 0 8px; }
.service-steps p { color: #666; margin: 0; }

.service-faq { max-width: 900px; margin: 0 auto; }
.service-faq details {
    background: #fff;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0 20px;
    transition: box-shadow .2s;
}
.service-faq details[open] { box-shadow: 0 8px 22px rgba(20, 40, 80, .08); }
.service-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 30px 18px 0;
    position: relative;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}
.service-faq summary::-webkit-details-marker { display: none; }
.service-faq summary:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #008DD2;
}
.service-faq details[open] summary:after { content: "\2212"; }
.service-faq details p { color: #555; padding: 0 0 18px; margin: 0; line-height: 1.7; }

.service-section-cta {
    background: linear-gradient(135deg, #eaf6fd 0%, #f3fbea 100%);
}
.service-cta-points { list-style: none; padding: 0; margin: 18px 0; }
.service-cta-points li { margin-bottom: 8px; font-size: 16px; color: #333; }
.service-cta-points i { color: #3d9a2b; margin-right: 8px; }
.service-cta-call { font-size: 15px; }
.service-section-cta form .form-control { margin-bottom: 12px; background: #fff; }
@media (max-width: 767px) {
    .service-heading { font-size: 24px; }
    .service-section { padding: 40px 0; }
}

/* The theme styles "#contact .form-control" dark (for a dark footer form).
   Our contact/demo forms sit on light backgrounds. */
#contact .form-control {
    background-color: #fff;
    color: #444;
    border: 1px solid #d5dde5;
    box-shadow: none;
}
#contact .form-control:focus {
    border-color: #008DD2;
    box-shadow: 0 0 0 3px rgba(0, 141, 210, .15);
}
#contact textarea.form-control { height: auto; }

/* Footer lists: some page styles float list items; keep each list and the
   heading below it on their own full-width rows. */
.section-footer .footer-links ol,
.section-footer .widget ol {
    float: none;
    clear: both;
    overflow: hidden;
    width: 100%;
}
.section-footer .footer-links ol li,
.section-footer .widget ol li {
    float: none;
    width: auto;
}
.section-footer .footer-heading {
    clear: both;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Sticky menu: Bootstrap "affix" pins only the .navbar, and the main logo
   lives outside it, so show a compact logo inside the pinned bar.
   -------------------------------------------------------------------------- */
.sticky-logo { display: none; }
.navbar.affix {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.navbar.affix .sticky-logo {
    display: block;
    float: left;
    padding: 6px 15px 6px 15px;
}
.navbar.affix .sticky-logo img {
    display: block;
    height: 46px;
    width: auto;
}
@media (min-width: 992px) {
    /* Centre the pinned menu items beside the compact logo. */
    .navbar.affix > .navbar-header { float: left; }
    .navbar.affix .navbar-collapse { float: left; width: auto; }
}
@media (max-width: 991px) {
    .navbar.affix .sticky-logo img { height: 40px; }
}
/* Keep the space of the menu bar when it becomes fixed, so the page doesn't jump. */
.header-wrapper .site-header > .col-lg-10 { min-height: 60px; }
