/*
 * Boutique Core Styles v2.0
 * Professional Separation of UI/UX Components
 */

.nav-logo img {
    transform-origin: left center;
}

body.home222 {
    background: #ffffff !important;
    overflow-x: hidden !important;
    width: 100%;
}

.hero {
    height: 780px !important;
    min-height: 780px !important;
    display: flex !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    z-index: 500 !important;
    pointer-events: none !important;
}

/* AOS Custom Overrides */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hub-drawer {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    width: 450px !important;
    max-width: 90vw !important;
    background: #fff !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 30px 90px -20px rgba(15, 23, 42, 0.3) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    z-index: 10000 !important;
    overflow: hidden !important;
}

.hub-drawer-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #fff !important;
}

.hub-btn-link {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.hub-btn-link:hover {
    background: transparent !important;
    color: #ff6900 !important;
    transform: scale(1.15) !important;
}

.hero-inner {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 20px 4% 0 4% !important;
    top: 60px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 60px !important;
    position: relative !important;
    height: auto !important;
    z-index: 510 !important;
    pointer-events: none !important;
}

.hero-form-col {
    flex: 0 0 var(--h2-hero-form-width) !important;
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    opacity: 0;
    animation: formEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

.hero-text {
    flex: 1 !important;
    position: relative !important;
    z-index: 80 !important;
    pointer-events: auto !important;
    text-align: left !important;
    padding-top: 35px !important;
    opacity: 0;
    animation: textEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-car {
    position: absolute !important;
    width: 70% !important;
    z-index: 10 !important;
    pointer-events: none !important;
    opacity: 0;
    animation: carEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes carEntrance {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes textEntrance {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes formEntrance {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

body.home main>section.hero, .hero-inner, .hero-form-col, .search-card, .sc-body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

main section {
    display: block !important;
    float: none !important;
    clear: both !important;
}

.h2-trust-strip {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

/*
 * Trust strip wrapper uses negative margin-top and overlaps the hero footer.
 * #hero-master stacks at z-index 50; middle sections must paint above or the hero layer
 * steals pointer events → :hover on trust badges fails. Keep this rule in boutique-core
 * (always linked) so builds cannot purge Tailwind arbitrary z-[55].
 */
body.home #sectionsContainer.h2-main-below-hero {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

body.home #section-trust_badges.h2-trust-strip {
    position: relative !important;
    pointer-events: auto !important;
}

/* Hexagon Shapes & Trust Effects */
.trust-visual-container {
    position: relative;
    width: 120px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trust-hexagon-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.06));
}

.hexagon-shape {
    fill: #ffffff;
    stroke: #f1f5f9;
    stroke-width: 1.5;
    transition: all 0.5s ease;
}

.trust-item:hover .trust-visual-container {
    transform: translateY(-12px) rotate(5deg) scale(1.05);
}

.trust-item:hover .trust-hexagon-svg {
    filter: drop-shadow(0 20px 30px rgba(255, 105, 0, 0.15));
}

.trust-item:hover .hexagon-shape {
    stroke: #ff6900;
    fill: #fff9f5;
}

.trust-item:hover i {
    color: #ff6900 !important;
}

.services-card > *:not(.services-number) {
    position: relative;
    z-index: 1;
}

.services-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(3, 22, 41, 0.12);
    box-shadow: 0 12px 40px -24px rgba(3, 22, 41, 0.18);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.services-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 40px 80px -20px rgba(3, 22, 41, 0.14),
        0 0 0 1px rgba(255, 105, 0, 0.25) !important;
    border-color: #ff6900 !important;
    background: #ffffff;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 1.5px solid rgba(255, 105, 0, 0.35);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 2rem;
    box-shadow: 0 6px 18px -12px rgba(3, 22, 41, 0.12);
}

.services-card:hover .service-icon-wrapper {
    background: #ff6900;
    border-color: #ff6900;
    color: #ffffff !important;
    transform: rotate(12deg);
    box-shadow: 0 16px 32px -12px rgba(255, 105, 0, 0.55);
}

.services-number {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(3, 22, 41, 0.07);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s ease;
}

.services-card:hover .services-number {
    color: rgba(255, 105, 0, 0.14);
    transform: scale(1.2) translateY(10px);
}

.h2-main-below-hero {
    display: block !important;
    width: 100% !important;
    position: relative;
    z-index: 20;
}

.h2-main-below-hero section {
    margin-bottom: 120px !important;
    width: 100% !important;
    display: block !important;
}

/* Mosaic & Grid Sections */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 580px;
    width: 100%;
    position: relative;
}

.h2-premium-single-img {
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block !important;
    width: 100%;
    height: 100%;
}

.h2-premium-single-img img {
    height: 100% !important;
    object-fit: cover !important;
}

.h2-premium-single-img:hover {
    transform: scale(1.02) translateY(-10px) !important;
}

.mosaic-dot-pattern {
    background-image: radial-gradient(#ff6900 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.2;
    border-radius: 1.5rem;
}

.h2-section-container {
    width: 100% !important;
    max-width: 1800px !important;
    margin: 0 auto !important;
    padding: 0 4%;
}

.section-separator {
    height: 100px;
    background: white;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: 3.5rem !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
}

/* Form Buttons & UI Components */
.sc-btn {
    width: 100%;
    height: 54px !important;
    background: linear-gradient(135deg, #ff6900 0%, #ff8c33 100%) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sc-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 0, 0.45);
    filter: brightness(1.1);
}

/* Exclude orange CTAs: their fill must stay solid orange (see .boutique-orange-cta-shimmer). */
.premium-boutique-shimmer:not(.boutique-orange-cta-shimmer) {
    background-size: 200% 100% !important;
    background-repeat: no-repeat !important;
    background-image: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%, transparent 100%) !important;
    animation: internal-sweep 4s infinite linear !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden !important;
}

@keyframes internal-sweep {
    0% {
        background-position: 200% 0;
    }

    30% {
        background-position: -100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Home — sell block headline: moving light across orange text */
.h2-sell-headline-shimmer {
    display: inline-block;
    max-width: 100%;
    background-image: linear-gradient(
        100deg,
        #e85d00 0%,
        #ff6900 18%,
        #ff9a3c 38%,
        #fff4e8 50%,
        #ff9a3c 62%,
        #ff6900 82%,
        #cc4a00 100%
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: h2-sell-headline-shimmer-move 4.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 10px rgba(255, 105, 0, 0.4)) drop-shadow(0 0 24px rgba(255, 150, 60, 0.28));
}

@keyframes h2-sell-headline-shimmer-move {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/*
 * Orange CTAs: do NOT combine with .premium-boutique-shimmer — that class sets a
 * mostly-transparent background-image (white sweep); transparent areas show the parent
 * (e.g. white card) and the button looks white. Solid fill + shadow pulse only.
 */
.boutique-orange-cta-shimmer {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    background-color: #ff6900 !important;
    background-image: linear-gradient(135deg, #ff6900 0%, #ff8c33 100%) !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    animation: boutique-orange-cta-glow 2.6s ease-in-out infinite !important;
}

.boutique-orange-cta-shimmer::before {
    display: none !important;
}

.boutique-orange-cta-shimmer > * {
    position: relative;
    z-index: 1;
}

/* If both classes are still present on old markup, orange wins over premium sweep */
.boutique-orange-cta-shimmer.premium-boutique-shimmer {
    background-color: #ff6900 !important;
    background-image: linear-gradient(135deg, #ff6900 0%, #ff8c33 100%) !important;
    background-size: 100% 100% !important;
    animation: boutique-orange-cta-glow 2.6s ease-in-out infinite !important;
}

@keyframes boutique-orange-cta-glow {
    0%,
    100% {
        box-shadow: 0 8px 22px -5px rgba(255, 105, 0, 0.42);
    }
    50% {
        box-shadow:
            0 12px 34px -3px rgba(255, 130, 50, 0.55),
            0 0 22px rgba(255, 160, 80, 0.3);
    }
}

.sc-btn-back {
    height: 54px !important;
    width: 54px !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #64748b !important;
    border-radius: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sc-btn-back:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    transform: translateY(-1px);
}

/* Boutique Finale & Footer Lux */
.h2-footer-static-ultimate {
    position: relative;
    width: 100% !important;
    background-color: transparent !important;
    z-index: 100;
    overflow: visible !important;
    display: block !important;
    clear: both !important;
    margin-top: -100px !important;
    padding-top: 150px !important;
}

.h2-footer-static-ultimate::before {
    content: "";
    position: absolute;
    inset: -300px 0 0 0;
    background-image: url('/images/front/footer.png') !important;
    background-size: 100% auto !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    opacity: 0.55 !important;
    z-index: -1;
    pointer-events: none;
}

.h2-footer-static-ultimate .h2-section-container {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.footer-header-lux {
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.25em !important;
    color: #ff6900 !important;
    margin-bottom: 0px !important;
    display: inline-block !important;
}

.footer-link-lux {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
}

.footer-link-lux:hover {
    color: #ff6900 !important;
    transform: translateX(5px);
}

.social-item-lux {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #031629;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.social-item-lux:hover {
    background: #ff6900;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 105, 0, 0.2);
}

/* Animations */
@keyframes marquee-ltr {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes marquee-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.animate-marquee-ltr {
    animation: marquee-ltr 120s linear infinite;
    width: max-content;
}

.animate-marquee-rtl {
    animation: marquee-rtl 140s linear infinite;
    width: max-content;
}

.marquee-gradient-mask {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Custom Footer Fixes & Overrides */
.h2-custom-footer-fix a:hover span,
.h2-custom-footer-fix a:hover i,
.h2-custom-footer-fix a:hover svg,
.h2-custom-footer-fix a:hover {
    color: #ff6900 !important;
    stroke: #ff6900 !important;
}

.social-icon-fix:hover svg,
.social-icon-fix:hover i,
.social-icon-fix:hover {
    color: #ff6900 !important;
    stroke: #ff6900 !important;
    transform: translateY(-4px);
}

/* Global Weight Reset: Pure Premium Feel */
.home,
.home * {
    font-weight: 300;
}

.font-black,
.font-extrabold,
.font-bold {
    font-weight: 500 !important;
}

.font-semibold,
.font-medium {
    font-weight: 400 !important;
}

.font-normal,
.font-light,
.font-thin {
    font-weight: 300 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
th,
.hero-title,
.sc-title {
    font-weight: 500 !important;
    font-family: 'Inter', 'Cairo', sans-serif !important;
}

.sc-pill-val {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

/* ═══ Responsive: home & public pages (mobile / tablet) ═══ */
@media (max-width: 1023px) {
    .hero {
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
        top: 0 !important;
    }

    .hero-form-col {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mobile/tablet: lead form first (under nav), then headline, then car — matches product ask */
    .hero-form-col {
        order: 1;
        width: 100%;
    }

    .hero-text {
        order: 2;
        width: 100%;
        padding-top: 0 !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 5.5vw, 2.4rem) !important;
    }

    .hero-car {
        position: relative !important;
        width: min(100%, 28rem) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    [dir="rtl"] .hero-car {
        left: auto !important;
        right: auto !important;
    }

    .mosaic-grid {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 1rem;
    }

    .h2-main-below-hero section {
        margin-bottom: 4rem !important;
    }

    .h2-section-container {
        padding-left: max(1rem, env(safe-area-inset-left), 4%) !important;
        padding-right: max(1rem, env(safe-area-inset-right), 4%) !important;
    }

    .hub-drawer {
        width: min(100vw - 2rem, 450px) !important;
        max-width: calc(100vw - 1.5rem) !important;
    }

    .h2-footer-static-ultimate {
        margin-top: 0 !important;
        padding-top: 4rem !important;
    }
}

@media (max-width: 639px) {
    .trust-visual-container {
        width: 96px !important;
        height: 104px !important;
        margin-bottom: 1rem !important;
    }

    .section-separator {
        height: 48px;
    }

    .services-number {
        font-size: 3rem !important;
        top: 12px !important;
        right: 14px !important;
    }
}

/*
 * Navbar (modern): boutique is loaded without waiting for Vite rebuild.
 * app.css `.nav-pill`/`.nav-center { display:flex }` must not show on phones.
 */
@media (max-width: 1023px) {
    .main-modern-nav .nav-pill,
    .main-modern-nav .nav-center {
        display: none !important;
    }

    .main-modern-nav .nav-search {
        display: none !important;
    }

    .main-modern-nav.nav {
        display: flex !important;
        flex-wrap: wrap !important;
        grid-template-columns: unset !important;
        height: auto !important;
        min-height: 56px !important;
    }

    .main-modern-nav .nav-hamburger-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .main-modern-nav .nav-hamburger-btn {
        display: none !important;
    }
}

/*
 * Home hero (mobile/tablet): lead form → headline → car. `main` already has padding-top for fixed nav;
 * avoid double top offset (was causing a large blank band under the navbar).
 */
@media (max-width: 1023px) {
    body.home #hero-master {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        row-gap: clamp(1rem, 4vw, 1.75rem) !important;
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
        padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
    }

    body.home #hero-master > .hero-inner {
        display: contents !important;
    }

    body.home #hero-master .hero-form-col {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.home #hero-master .hero-text {
        order: 2 !important;
        width: 100% !important;
        max-width: none !important;
        padding-top: 0 !important;
    }

    /* Decorative car: hide on phone/tablet — stops empty band (opacity:0 / min-height still laid out) */
    body.home #hero-master .hero-car {
        order: 3 !important;
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.home #hero-master .hero-inner {
        gap: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Blade inline RTL margins are desktop offsets — reset on small screens */
    [dir="rtl"] body.home #hero-master .hero-text {
        margin-inline: 0 !important;
    }
}

/* Home: hero valuation card matches middle-page sell form; quick-pick logos only from lg up */
@media (max-width: 1023px) {
    body.home #h2-hero-sell-wizard .hero-wizard-quickpick,
    body.home .sell-mini-quickpick {
        display: none !important;
    }
    body.home #h2-hero-sell-wizard.hero-sell-match-mini.search-card {
        padding: 1.5rem !important;
        border-radius: 1.25rem !important;
        border: 1px solid rgb(226 232 240 / 0.9) !important;
        background: linear-gradient(to bottom, rgb(248 250 252), rgb(255 255 255), rgb(255 255 255)) !important;
        box-shadow: 0 24px 70px -30px rgba(3, 22, 41, 0.15) !important;
    }
    body.home #h2-hero-sell-wizard.hero-sell-match-mini .sc-header {
        padding: 0 0 1rem 0 !important;
        margin-bottom: 0 !important;
    }
    body.home #h2-hero-sell-wizard.hero-sell-match-mini .sc-body {
        padding: 0 !important;
    }
    body.home #h2-hero-sell-wizard.hero-sell-match-mini .sc-tabs {
        margin: 0 0 1.25rem 0 !important;
    }
}

/*
 * AOS: aos.css hides [data-aos] at opacity:0 until .aos-animate is added on scroll.
 * boutique-core.js skips AOS.init() on narrow viewports — without this override,
 * reviews / map / services blocks stay invisible on phones & tablets.
 */
@media (max-width: 1023px) {
    html body [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/*
 * Visitor support chat FAB – must stay viewport-fixed above footer / stacking contexts.
 * Tailwind alone can lose to later rules; inline host class + !important keeps it clickable.
 */
.support-chat-widget-host {
    position: fixed !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483000 !important;
    isolation: isolate;
    pointer-events: auto !important;
}