/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ============================================
   CURA - Custom Styles
   ============================================ */

/* --- Marquee Animation --- */
@keyframes cura-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.cura-marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.cura-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    animation: cura-marquee 70s linear infinite;
    width: max-content;
    gap: 60px;
    align-items: center;
    white-space: nowrap;
}

.cura-marquee-track .elementor-widget-heading,
.cura-marquee-track .elementor-heading-title {
    white-space: nowrap !important;
    width: max-content !important;
}

.cura-marquee-track:hover {
    animation-play-state: paused;
}

/* --- Header: overlay on hero --- */
.cura-header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, margin-bottom 0.3s ease;
    margin-bottom: -98px !important; /* Pull content up so hero goes under header */
}

/* CURA plugin pages: cream tinted header with blur (no hero overlap) */
body.cura-light-header .cura-header {
    margin-bottom: 0 !important;
    background-color: rgba(242, 238, 233, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.cura-light-header .cura-header .cura-header-logo img {
    filter: invert(1) !important;
}

body.cura-light-header .cura-header .cura-header-nav .elementor-heading-title,
body.cura-light-header .cura-header .cura-header-nav .elementor-heading-title a,
body.cura-light-header .cura-header .cura-header-icons .elementor-icon i,
body.cura-light-header .cura-header .cura-header-icons .elementor-icon svg,
body.cura-light-header .cura-header .elementor-widget-heading .elementor-heading-title {
    color: #191919 !important;
    fill: #191919 !important;
}

.cura-header.cura-header--transparent {
    background-color: transparent !important;
}

.cura-header.cura-header--scrolled {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 0 !important;
}

/*
 * Light (black-logo) header variant: when the Elementor template has the
 * `cura-header--light` class on its root wrapper, the scrolled background
 * switches from dark semi-transparent to cream with blur.
 */
.cura-header.cura-header--light.cura-header--scrolled {
    background-color: rgba(242, 238, 233, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cura-header.cura-header--light.cura-header--transparent {
    background-color: rgba(242, 238, 233, 0.85) !important;
}

/* Header icon sizing fix */
.cura-header .elementor-widget-icon .elementor-icon {
    font-size: 22px !important;
    width: auto !important;
    height: auto !important;
}
.cura-header .elementor-widget-icon .elementor-icon i {
    font-size: 22px !important;
}

/* --- Dashboard sidebar collapse on mobile (user menu only) ---
 * The client/facilitator sidebar is normally a card/column with the user
 * greeting + nav links. On mobile (<=767px) the JS in functions.php injects
 * a small toggle button inside the dashboard wrapper. The sidebar hides by
 * default and opens as a slide-in panel when the toggle is clicked.
 * Does NOT touch the site header.
 */
/* Dashboard toggle bar: hamburger (left) | active section title (center) | avatar (right) */
.cura-sidebar-toggle {
    display: none;
}

.cura-sidebar-toggle__btn {
    background: transparent;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: #191919;
    line-height: 0;
}
.cura-sidebar-toggle__btn svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
}

.cura-sidebar-toggle__title {
    flex: 1 1 auto;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #191919;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

img.cura-sidebar-toggle__avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #e5e5e5;
    flex: 0 0 auto;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

@media (max-width: 767px) {
    .cura-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        margin: 0 0 16px 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Hide sidebar by default on mobile */
    .cura-cdash .cura-cdash__sidebar,
    .cura-fdash .cura-fdash__sidebar {
        display: none !important;
    }

    /* Let main content take full width */
    .cura-cdash,
    .cura-fdash {
        display: block !important;
    }

    /* Open state: sidebar becomes a slide-in panel */
    .cura-cdash.cura-cdash--menu-open .cura-cdash__sidebar,
    .cura-fdash.cura-fdash--menu-open .cura-fdash__sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        z-index: 9999 !important;
        background: #FFFFFF !important;
        padding: 60px 20px 20px !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15) !important;
        border-radius: 0 !important;
    }

    /* Force single-column vertical menu inside the slide-in panel */
    .cura-cdash.cura-cdash--menu-open .cura-cdash__nav,
    .cura-fdash.cura-fdash--menu-open .cura-fdash__nav {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
    }
    .cura-cdash.cura-cdash--menu-open .cura-cdash__nav-link,
    .cura-fdash.cura-fdash--menu-open .cura-fdash__nav-link {
        width: 100% !important;
        padding: 14px 12px !important;
        font-size: 16px !important;
    }

    /* Close button inside the panel (injected by JS) */
    .cura-sidebar-close {
        position: absolute;
        top: 14px;
        right: 14px;
        background: transparent;
        border: none;
        padding: 6px;
        cursor: pointer;
        color: #191919;
        line-height: 0;
    }
    .cura-sidebar-close svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
    }

    /* Backdrop */
    .cura-cdash.cura-cdash--menu-open::before,
    .cura-fdash.cura-fdash--menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }
}

/* --- Header: mobile two-row layout (logo top, nav below) --- */
@media (max-width: 767px) {
    /* Force EVERY nested Elementor container in the header to stack
       vertically with no gap. Targets both .e-con and .e-con-inner at
       any depth so we catch the actual rendered structure. */
    .cura-header .e-con,
    .cura-header .e-con-inner {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        row-gap: 0 !important;
        column-gap: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        text-align: center;
    }

    /* But the nav + icons rows themselves need to STAY horizontal so
       buttons sit side-by-side. Override the column rule above for them. */
    .cura-header .cura-header-nav,
    .cura-header .cura-header-nav .e-con-inner,
    .cura-header .cura-header-icons,
    .cura-header .cura-header-icons .e-con-inner {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        column-gap: 8px !important;
    }

    /* Zero margin/padding on every widget wrapper inside the header so
       the logo sits flush against the nav row below it. */
    .cura-header .elementor-widget,
    .cura-header .elementor-widget-container,
    .cura-header .elementor-widget-image,
    .cura-header .elementor-widget-image .elementor-widget-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Header outer wrapper: small breathing room top + bottom only. */
    .cura-header,
    .cura-header > .e-con,
    .cura-header > .e-con > .e-con-inner {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* Logo: centered on its own row, comfortable size. */
    .cura-header .elementor-widget-image,
    .cura-header .elementor-widget-image .elementor-widget-container {
        width: auto !important;
        flex: 0 0 auto !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .cura-header .elementor-widget-image img {
        max-width: 140px !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block;
    }

    /* Nav row: items wrap if needed, centered horizontally. */
    .cura-header .cura-header-nav,
    .cura-header .cura-header-nav > .e-con-inner,
    .cura-header .cura-header-icons,
    .cura-header .cura-header-icons > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Tighter paddings so buttons fit on narrow screens. */
    .cura-header .cura-header-icons .elementor-button {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    .cura-header .cura-header-icons .elementor-widget-icon .elementor-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
}

/* --- Pricing Card Highlighted Shadow (5-layer cascade) --- */
.cura-pricing-highlight {
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.10),
        0 33px 33px rgba(0, 0, 0, 0.09),
        0 73px 44px rgba(0, 0, 0, 0.05),
        0 130px 52px rgba(0, 0, 0, 0.01),
        0 203px 57px rgba(0, 0, 0, 0.00) !important;
}

/* --- Announcement Bar Close --- */
.cura-announcement-bar {
    position: relative;
}

.cura-announcement-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

/* --- Practitioner Cards --- */
.cura-practitioner-card .elementor-image img {
    border-radius: 21px;
    transition: transform 0.5s ease;
}

.cura-practitioner-card:hover .elementor-image img {
    transform: scale(1.03);
}

.cura-practitioner-card .elementor-widget-image {
    overflow: hidden;
    border-radius: 21px;
}

/* --- Pillar Cards hover zoom --- */
.cura-pillar-card .elementor-widget-image img,
.e-con[data-settings*="card-learn"] img,
.e-con[data-settings*="card-heal"] img,
.e-con[data-settings*="card-grow"] img {
    transition: transform 0.6s ease;
}

/* Practitioner card image overflow clip */
.cura-practitioner-card .elementor-widget-image {
    overflow: hidden;
    border-radius: 21px;
}

/* --- Pill Buttons Global --- */
.cura-btn-pill .elementor-button {
    border-radius: 62px !important;
    padding: 16px 54px !important;
}

.cura-btn-pill-full .elementor-button {
    border-radius: 9999px !important;
}

/* --- Three Pillars Card Overlay --- */
.cura-pillar-card {
    position: relative;
    overflow: hidden;
    border-radius: 21px;
}

.cura-pillar-card .cura-pillar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    z-index: 2;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .cura-marquee-track {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .cura-marquee-track {
        gap: 20px;
    }
}
