/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

html {
    scroll-behavior: smooth !important;
}

a {
    color: #0E2A47;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: #B5530F;
}

h1, h2, h3, h4, h5, h6, strong {
    font-family: 'Libre Franklin', sans-serif !important;
}

p {
    font-family: 'Source Sans 3', sans-serif !important;
}

.cstm-visa h3 {
	color: #fff !important;
}
.cstm-color img {
    width: 100% !important;
    height: -webkit-fill-available;
    object-fit: cover;
}
#cstm-img-wd img {
    min-width: 0;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 6px !important;
    display: block;
}.cstm-img-wd.wd img {
    aspect-ratio: 16 / 10;
}.qph-card img {
    transition: transform .7s ease;
    width: 100% !important;
    height: -webkit-fill-available;
    object-fit: cover;
}aside.qph-toc {
    margin-bottom: 30px;
}
.cstm-color h3 {
    color: #fff !important;
}
.form {
    min-width: 0;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 22px;
}.form.form-contact {
    min-width: 0;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(14,42,71,0.14);
    border-top: 4px solid #0E2A47;
}
.gform_wrapper {
    margin-bottom: 0px !important;
}.gform_footer.top_label {
    padding-bottom: 0px !important;
}
.gform_wrapper .gform_footer .gform_button[type=submit] {
    width: 100% !important;
}
.qph-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Dropdown menus */
.qph-dd {
    position: relative;
    padding: 14px 0;
}

.qph-dd > a svg {
    transition: transform .25s ease;
}

.qph-dd:hover > a svg, .qph-dd:focus-within > a svg {
    transform: rotate(180deg);
}

.qph-menu {
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 270px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(14,42,71,.16);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 60;
}

.qph-dd:hover .qph-menu, .qph-dd:focus-within .qph-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.qph-menu a {
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'Source Sans 3', sans-serif !important;
    font-weight: 500;
    font-size: 15px;
    color: #1D2B3A;
    transition: background .15s ease, color .15s ease, padding-left .2s ease;
}

.qph-menu a:hover {
    background: #F2F4F7;
    color: #B5530F;
    padding-left: 16px;
}

@media (max-width: 700px) {
.mobile-none {
    display: none;
}.form {
    margin-top: 40px;
}#cstm-img-wd img {
    margin-top: 40px;
}
}

/* --- MOBILE RESPONSIVE ADDITIONS (Leaves Desktop HTML 100% Untouched) --- */

/* Add a hamburger toggle button dynamically for mobile */
@media (max-width: 900px) {
    header > div {
        position: relative;
    }

    /* Injects a functional mobile menu toggle without changing your HTML */
    header > div::before {
        content: "☰";
        order: 2;
        font-size: 24px;
        cursor: pointer;
        padding: 4px 8px;
        color: #1D2B3A;
        line-height: 1;
    }

    /* Hide nav and button by default on mobile, show when toggled via script/class */
    header nav, 
    header .qph-btn {
        display: none !important;
        width: 100%;
    }

    header nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        order: 4;
    }

    header .qph-btn {
        order: 5;
        justify-content: center;
    }

    /* When mobile menu is active */
    header.qph-mobile-active nav,
    header.qph-mobile-active .qph-btn {
        display: flex !important;
    }

    .qph-dd {
        width: 100%;
        padding: 0;
    }

    .qph-dd > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .qph-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #F9FAFB !important;
        width: 100%;
        margin-top: 6px;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .qph-dd:hover .qph-menu, 
    .qph-dd:focus-within .qph-menu,
    .qph-dd.open .qph-menu {
        display: flex !important;
    }
}

header nav a.active, header nav a[aria-current="page"] {
    color: #B5530F;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 2px solid #E46E1B;
}

/* Hover states */
.qph-btn {
    transition: transform .2s ease, filter .2s ease, background .2s ease, box-shadow .2s ease;
}

.qph-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px rgba(10,31,54,.22);
}

.qph-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.qph-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(14,42,71,.14);
}

.qph-card .qph-zoom {
    overflow: hidden;
}

.qph-card img {
    transition: transform .7s ease;
}

.qph-card:hover img {
    transform: scale(1.06);
}

.qph-tile {
    transition: transform .3s ease, background .3s ease;
}

.qph-tile:hover {
    transform: translateY(-4px);
    background: #18406B !important;
}

.qph-step {
    transition: transform .25s ease, box-shadow .25s ease;
}

.qph-step:hover {
    transform: translateX(6px);
    box-shadow: 0 10px 26px rgba(14,42,71,.1);
}

.qph-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Libre Franklin', sans-serif !important;
    font-weight: 600;
    font-size: 15px;
    color: #B5530F;
}

.qph-more svg {
    transition: transform .2s ease;
}

.qph-more:hover svg {
    transform: translateX(4px);
}

/* Table of content (cancellation pages) */
.qph-toc a, .qph-toc span {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 15px;
    color: #1D2B3A;
    transition: background .15s ease, color .15s ease, padding-left .2s ease;
}

.qph-toc a:hover {
    background: #FFFFFF;
    color: #B5530F;
    padding-left: 16px;
}

/* Accordions */
.qph-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease;
}

.qph-acc-panel.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.qph-acc-icon {
    transition: transform .3s ease;
}

[aria-expanded="true"] > .qph-acc-icon {
    transform: rotate(45deg);
}

/* Entrance and scroll animations */
.qph-in {
    animation: qphIn .9s cubic-bezier(.2,.7,.2,1) both;
}

.qph-in2 {
    animation: qphIn .9s .15s cubic-bezier(.2,.7,.2,1) both;
}

.qph-in3 {
    animation: qphIn .9s .3s cubic-bezier(.2,.7,.2,1) both;
}

.qph-kb {
    animation: qphZoom 6s ease-out both;
}

@keyframes qphIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes qphZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

@supports (animation-timeline: view()) {
    .qph-rv {
        animation: qphIn linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

/* QPH Assistant */
.qph-assistant {
    font-family: 'Source Sans 3', system-ui, sans-serif !important;
    color: #1D2B3A !important;
}

.qph-ai-panel {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 90;
    width: min(400px, calc(100vw - 40px));
    height: min(580px, calc(100vh - 120px));
    background: #FFFFFF;
    border: 1px solid #DDE2E8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(14,42,71,.25);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.qph-assistant.open .qph-ai-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.qph-ai-head {
    background: #0E2A47;
    color: #FFFFFF;
    padding: 14px 14px 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qph-ai-badge {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #E46E1B;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.qph-ai-title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.qph-ai-title strong {
    font-family: 'Libre Franklin', sans-serif !important;
    font-weight: 600;
    font-size: 16px;
}

.qph-ai-title span {
    font-size: 13px;
    color: #A9B8C9;
}

.qph-ai-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qph-ai-log {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F2F4F7;
}

.qph-ai-msg {
    display: flex;
    justify-content: flex-start;
}

.qph-ai-msg > div {
    max-width: 88%;
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1D2B3A;
    border: 1px solid #DDE2E8;
    animation: qphIn .3s ease both;
}

.qph-ai-msg.me {
    justify-content: flex-end;
}

.qph-ai-msg.me > div {
    background: #0E2A47;
    color: #FFFFFF;
    border: 0;
}

.qph-ai-chips {
    padding: 10px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #FFFFFF;
    border-top: 1px solid #DDE2E8;
}

.qph-ai-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7A8B;
}

.qph-ai-chips button {
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #DDE2E8;
    background: #FFFFFF;
    color: #0E2A47;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.qph-ai-chips button:hover {
    background: #F2F4F7;
    border-color: #C9D2DC;
}

.qph-ai-form {
    padding: 10px 14px 14px;
    display: flex;
    gap: 8px;
    background: #FFFFFF;
}

.qph-ai-form input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #C9D2DC;
    border-radius: 6px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: #1D2B3A;
    background: #FFFFFF;
}

.qph-ai-form button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: #0E2A47;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qph-ai-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #0E2A47;
    color: #FFFFFF;
    font-family: 'Libre Franklin', sans-serif !important;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14,42,71,.28);
    transition: transform .2s ease;
}

.qph-ai-toggle:hover {
    transform: translateY(-2px);
}

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

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
