/* Custom Styles for Ges-sco */

/* Language switcher – inline inside navbar */
.lang-switcher-desktop .btn-group,
.lang-switcher-mobile .btn-group {
    border-radius: 20px;
    overflow: hidden;
}

.lang-switcher-desktop .btn,
.lang-switcher-mobile .btn {
    border-radius: 0;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.lang-switcher-desktop .btn:first-child,
.lang-switcher-mobile .btn:first-child {
    border-radius: 20px 0 0 20px;
}

.lang-switcher-desktop .btn:last-child,
.lang-switcher-mobile .btn:last-child {
    border-radius: 0 20px 20px 0;
}

.lang-switcher-mobile {
    flex-shrink: 0;
}

/* Contact Form Styles */
.contact-form-section {
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.contact-form-wrapper h2 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.contact-form-wrapper p.lead {
    color: #666;
    margin-bottom: 28px;
    font-size: .95rem;
    line-height: 1.6;
}

.contact-form-wrapper .form-control {
    border-radius: 8px;
    border: 1.5px solid #dfe3ea;
    padding: 12px 16px;
    font-size: .95rem;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-form-wrapper .form-control:focus {
    border-color: var(--primary-2, #ea252e);
    box-shadow: 0 0 0 3px rgba(234, 37, 46, 0.1);
    background: #fff;
}

.contact-form-wrapper .form-control::placeholder {
    color: #aab2bd;
    font-weight: 400;
}

.contact-form-wrapper select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form-wrapper label {
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .88rem;
}

.btn-submit-contact {
    background: var(--primary-2, #ea252e);
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    transition: background .2s, transform .2s, box-shadow .2s;
    width: 100%;
    cursor: pointer;
}

.btn-submit-contact:hover {
    background: var(--primary-1, #f53b47);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 37, 46, 0.25);
}

.contact-info-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.contact-info-box h3 {
    color: #fff;
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 22px;
}

.contact-info-item i {
    font-size: 22px;
    margin-right: 14px;
    margin-top: 2px;
    color: var(--primary-1, #f53b47);
    flex-shrink: 0;
}

.contact-info-item div h5 {
    color: #fff;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: .95rem;
}

.contact-info-item div p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .contact-info-box {
        margin-top: 30px;
        padding: 28px 20px;
    }
}

/* Arimo Font Classes */
.arimo-regular {
    font-family: "Arimo", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.arimo-semibold {
    font-family: "Arimo", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.arimo-bold {
    font-family: "Arimo", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Testimonials Carousel Styles */
.erp_testimonial_info .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.erp_testimonial_info .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #667eea !important;
}

.erp_testimonial_info .owl-nav button:hover {
    background: #667eea !important;
    transform: scale(1.1);
}

.erp_testimonial_info .owl-nav button span {
    font-size: 1.5rem;
    color: #667eea;
}

.erp_testimonial_info .owl-nav button:hover span {
    color: white;
}

.erp_testimonial_info .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.erp_testimonial_info .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    display: inline-block;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.erp_testimonial_info .owl-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* Animation for testimonial items */
.erp_testimonial_item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.erp_testimonial_item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.erp_testimonial_item:hover::before {
    left: 100%;
}

.erp_testimonial_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Stats animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* FAQ Enhanced Styles */
.faq-card {
    overflow: hidden;
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: #667eea !important;
}

.faq-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.faq-card:hover h5 {
    color: #667eea !important;
}

.faq-card .collapse.show~.card-body .toggle-icon i {
    transform: rotate(180deg);
}

.faq-card[aria-expanded="true"] .toggle-icon i {
    transform: rotate(180deg);
}

[data-bs-toggle="collapse"][aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Animation for collapse */
.collapse {
    transition: all 0.35s ease;
}

/* CTA Button Hover Effect */
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

/* Footer Styles */
.footer_area {
    position: relative;
    overflow: hidden;
}

.footer_area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-links a {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    transform: translateX(5px);
    color: #ffd700 !important;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.1);
}

.btn-circle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white !important;
    transform: translateY(-3px);
}

.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    opacity: 1 !important;
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer_area .col-lg-3,
.footer_area .col-lg-2 {
    animation: fadeInUp 0.6s ease forwards;
}

.footer_area .col-lg-3:nth-child(1) {
    animation-delay: 0.1s;
}

.footer_area .col-lg-3:nth-child(2) {
    animation-delay: 0.2s;
}

.footer_area .col-lg-2:nth-child(3) {
    animation-delay: 0.3s;
}

.footer_area .col-lg-2:nth-child(4) {
    animation-delay: 0.4s;
}

.footer_area .col-lg-2:nth-child(5) {
    animation-delay: 0.5s;
}

/* FAQ Animation Effects */
.faq_area .card {
    transition: all 0.3s ease;
    background: white;
}

.faq_area .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.faq_area .card-body {
    transition: all 0.3s ease;
}

.faq_area .card-body:hover h5 {
    color: #007bff !important;
}

.faq_area .collapse {
    transition: all 0.3s ease;
}

.faq_area .card i {
    transition: all 0.3s ease;
}

.faq_area .card:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .erp_testimonial_area h2 {
        font-size: 2rem !important;
    }

    .erp_testimonial_item {
        padding: 25px !important;
    }

    .avatar-circle {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.3rem !important;
    }

    .stat-item h3 {
        font-size: 2rem !important;
    }

    .faq_area h2 {
        font-size: 2rem !important;
    }

    .faq_area .card-body {
        padding: 15px !important;
    }

    .faq_area .card-body h5 {
        font-size: 1rem !important;
    }

    .faq_area .collapse .card-body {
        padding-left: 45px !important;
        font-size: 0.95rem !important;
    }

    .footer_area {
        padding: 50px 0 0 !important;
    }

    .footer_area .row>div {
        padding: 20px 30px !important;
    }

    .footer_area h3 {
        font-size: 1.1rem !important;
    }

    .trust-badge {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .faq_card .collapse .card-body {
        padding-left: 20px !important;
    }
}

/* --------------------------------------------------------------------------
   Site preloader — logo only, smooth enter/exit (page load & navigation)
   -------------------------------------------------------------------------- */
:root {
    --preloader-fade-ms: 620ms;
    --preloader-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --preloader-content-ms: 680ms;
}

body:has(#preloader.site-preloader:not(.is-done)) {
    overflow: hidden;
}

/* Main chrome fades/slides in as overlay dissolves */
body:has(#preloader.site-preloader:not(.is-done)) .body_wrapper {
    opacity: 0;
    transition: none;
}

body:has(#preloader.site-preloader.is-done) .body_wrapper,
body:not(:has(#preloader.site-preloader)) .body_wrapper {
    opacity: 1;
    /* Do not use transform here: any non-none transform creates a containing block and breaks
       position:fixed descendants inside .body_wrapper (nav, dropdowns, embedded modals, etc.). */
    transition: opacity var(--preloader-content-ms) var(--preloader-ease);
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1;
    transition:
        opacity var(--preloader-fade-ms) var(--preloader-ease),
        visibility 0s linear var(--preloader-fade-ms);
}

.site-preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--preloader-fade-ms) var(--preloader-ease),
        visibility 0s linear var(--preloader-fade-ms);
}

.site-preloader__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.site-preloader__logo {
    display: block;
    width: auto;
    max-width: min(200px, 48vw);
    height: auto;
    object-fit: contain;
    will-change: opacity, transform;
}

.site-preloader:not(.is-done) .site-preloader__logo {
    animation: site-preloader-logo-in 0.75s var(--preloader-ease) both;
}

@keyframes site-preloader-logo-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --preloader-fade-ms: 120ms;
        --preloader-content-ms: 120ms;
    }

    body:has(#preloader.site-preloader.is-done) .body_wrapper,
    body:not(:has(#preloader.site-preloader)) .body_wrapper {
        transition: opacity var(--preloader-fade-ms) ease;
    }

    .site-preloader:not(.is-done) .site-preloader__logo {
        animation: none;
        opacity: 1;
    }
}

/* In-page jumps (#contact, etc.) — smooth when user allows motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}