/* ============================================================
   WayCare Hero Widget — Mobile-first Premium Frontend Styles
   Version 1.1.0
   ============================================================ */

.wch-hero,
.wch-hero * {
    box-sizing: border-box;
}

.wch-hero {
    --wch-radius-xl: 30px;
    --wch-radius-lg: 22px;
    --wch-radius-md: 18px;
    --wch-shadow-soft: 0 18px 50px rgba(15, 39, 68, 0.10);
    --wch-shadow-card: 0 12px 30px rgba(15, 39, 68, 0.08);
    --wch-border: rgba(15, 39, 68, 0.08);

    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
    align-items: stretch;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--wch-radius-xl);
    background:
        radial-gradient(circle at 10% 0%, rgba(16, 185, 138, 0.10), transparent 32%),
        #ffffff;
    font-family: inherit;
    box-shadow: var(--wch-shadow-soft);
    isolation: isolate;
}

/* ── LEFT COLUMN ── */
.wch-left {
    position: relative;
    z-index: 1;
    padding: clamp(44px, 5vw, 72px) clamp(34px, 4.5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #fbfffd 100%);
}

.wch-left::after {
    content: '';
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(16, 185, 138, 0.08);
    pointer-events: none;
    z-index: -1;
}

.wch-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #10b98a;
    margin-bottom: 20px;
    padding: 9px 12px;
    border: 1px solid rgba(16,185,138,.18);
    border-radius: 999px;
    background: rgba(16,185,138,.07);
}

.wch-label-icon {
    font-size: 16px;
    line-height: 1;
}

.wch-heading {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: #111827;
    margin: 0 0 22px 0;
    padding: 0;
    text-wrap: balance;
}

.wch-accent-word {
    color: #10b98a;
}

.wch-subtext {
    font-size: clamp(15px, 1.25vw, 17px);
    color: #6b7280;
    line-height: 1.75;
    margin: 0 0 30px 0;
    max-width: 560px;
}

/* ── BUTTONS ── */
.wch-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin: 0 0 28px 0;
}

.wch-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 1 auto;
    min-width: 176px;
    font-size: 15px;
    font-weight: 750;
    padding: 14px 24px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    border: 1.5px solid transparent;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.wch-btn:hover,
.wch-cta-btn:hover {
    transform: translateY(-2px);
}

.wch-btn:focus-visible,
.wch-cta-btn:focus-visible {
    outline: 3px solid rgba(16, 185, 138, 0.28);
    outline-offset: 3px;
}

.wch-btn-primary {
    background: #10b98a;
    color: #ffffff !important;
    border-color: #10b98a;
    box-shadow: 0 13px 26px rgba(16, 185, 138, 0.27);
}

.wch-btn-primary:hover {
    background: #0d9e77;
    border-color: #0d9e77;
    color: #ffffff !important;
    box-shadow: 0 16px 32px rgba(16, 185, 138, 0.31);
}

.wch-btn-secondary {
    background: rgba(255,255,255,.72);
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.14);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(10px);
}

.wch-btn-secondary:hover {
    border-color: rgba(16, 185, 138, 0.38);
    color: #111827 !important;
    background: #ffffff;
}

.wch-btn-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
}

/* ── TRUST PILLS ── */
.wch-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.wch-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #64748b;
    font-weight: 650;
    line-height: 1.2;
    padding: 9px 11px;
    border: 1px solid rgba(15, 39, 68, 0.08);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
}

.wch-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b98a;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(16,185,138,.10);
}

/* ── RIGHT COLUMN ── */
.wch-right {
    position: relative;
    background: #f5fbf8;
    padding: clamp(28px, 3.2vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.wch-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 5%, rgba(16,185,138,.18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.55), transparent);
    pointer-events: none;
}

.wch-cards-grid,
.wch-cta-card {
    position: relative;
    z-index: 1;
}

.wch-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wch-info-card {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(16, 185, 138, 0.13);
    border-radius: 18px;
    padding: 22px;
    min-height: 150px;
    box-shadow: var(--wch-shadow-card);
    backdrop-filter: blur(12px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wch-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 138, 0.27);
    box-shadow: 0 18px 38px rgba(15,39,68,.11);
}

.wch-ic-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #10b98a;
    margin-bottom: 13px;
    border-radius: 14px;
    background: rgba(16,185,138,.09);
}

.wch-ic-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.wch-ic-body {
    font-size: 13px;
    color: #64748b;
    line-height: 1.58;
}

/* ── DARK CTA CARD ── */
.wch-cta-card {
    background: #0f2744;
    border-radius: 22px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(15, 39, 68, 0.20);
}

.wch-cta-card::after {
    content: '';
    position: absolute;
    bottom: -42px;
    right: -36px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(16, 185, 138, 0.20);
    pointer-events: none;
}

.wch-cta-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: 55px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}

.wch-cta-tag,
.wch-cta-heading,
.wch-cta-body,
.wch-cta-btn {
    position: relative;
    z-index: 1;
}

.wch-cta-tag {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #10b98a;
    margin-bottom: 9px;
}

.wch-cta-heading {
    font-size: clamp(25px, 2.4vw, 32px);
    font-weight: 850;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.wch-cta-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.68;
    margin-bottom: 22px;
}

.wch-cta-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b98a;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 750;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 14px 28px rgba(16,185,138,.25);
}

.wch-cta-btn:hover {
    background: #0d9e77;
    color: #ffffff !important;
    box-shadow: 0 17px 34px rgba(16,185,138,.30);
}

/* ── TABLET ── */
@media (max-width: 1100px) {
    .wch-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wch-left {
        padding: 48px 42px 34px;
    }

    .wch-right {
        padding: 34px 42px 42px;
    }

    .wch-heading {
        max-width: 720px;
    }

    .wch-subtext {
        max-width: 720px;
    }

    .wch-btn {
        flex: 0 1 220px;
    }
}

@media (max-width: 820px) {
    .wch-hero {
        border-radius: 26px;
    }

    .wch-left {
        padding: 42px 30px 24px;
    }

    .wch-right {
        padding: 26px 30px 34px;
        background: linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
    }

    .wch-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wch-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .wch-btn {
        width: 100%;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── MOBILE: rebuilt to feel native, not like a crushed desktop section ── */
@media (max-width: 640px) {
    .wch-hero {
        display: flex;
        flex-direction: column;
        border-radius: 24px;
        box-shadow: 0 16px 38px rgba(15, 39, 68, 0.11);
        background: #ffffff;
        overflow: hidden;
    }

    .wch-left {
        padding: 28px 18px 18px;
        background:
            radial-gradient(circle at 15% -10%, rgba(16,185,138,.15), transparent 42%),
            linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
    }

    .wch-left::after {
        display: none;
    }

    .wch-label {
        margin-bottom: 16px;
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: .105em;
        max-width: 100%;
    }

    .wch-heading {
        font-size: clamp(34px, 10.8vw, 44px);
        line-height: .98;
        letter-spacing: -0.06em;
        margin-bottom: 16px;
    }

    .wch-subtext {
        font-size: 15px;
        line-height: 1.66;
        margin-bottom: 20px;
        color: #5f6b7a;
    }

    .wch-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .wch-btn {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        justify-content: center;
        padding: 16px 18px;
        font-size: 15px;
        border-radius: 18px;
        white-space: normal;
        text-align: center;
    }

    .wch-btn-primary {
        box-shadow: 0 14px 28px rgba(16,185,138,.30);
    }

    .wch-btn-secondary {
        background: #ffffff;
        border-color: rgba(15,39,68,.10);
    }

    .wch-pills {
        gap: 8px;
        margin-top: 2px;
    }

    .wch-pill {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        min-height: 34px;
        text-align: center;
        font-size: 11px;
        padding: 8px 9px;
        background: #ffffff;
    }

    .wch-right {
        padding: 14px 14px 18px;
        gap: 12px;
        background: #ffffff;
    }

    .wch-right::before {
        display: none;
    }

    .wch-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wch-info-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 13px;
        align-items: start;
        padding: 16px;
        border-radius: 18px;
        border-color: rgba(15,39,68,.075);
        box-shadow: 0 9px 24px rgba(15, 39, 68, .07);
    }

    .wch-info-card:hover,
    .wch-btn:hover,
    .wch-cta-btn:hover {
        transform: none;
    }

    .wch-ic-icon {
        grid-row: span 2;
        width: 42px;
        height: 42px;
        margin: 0;
        font-size: 21px;
        border-radius: 14px;
    }

    .wch-ic-title {
        margin: 0 0 4px;
        font-size: 15px;
    }

    .wch-ic-body {
        font-size: 13px;
        line-height: 1.48;
    }

    .wch-cta-card {
        margin-top: 2px;
        padding: 22px 18px 18px;
        border-radius: 22px;
        box-shadow: 0 18px 34px rgba(15, 39, 68, 0.20);
    }

    .wch-cta-card::after {
        width: 120px;
        height: 120px;
        bottom: -46px;
        right: -42px;
    }

    .wch-cta-heading {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .wch-cta-body {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .wch-cta-btn {
        width: 100%;
        min-height: 54px;
        border-radius: 17px;
        padding: 15px 18px;
    }
}

@media (max-width: 380px) {
    .wch-left {
        padding-left: 15px;
        padding-right: 15px;
    }

    .wch-heading {
        font-size: 32px;
    }

    .wch-pill {
        flex-basis: 100%;
    }

    .wch-right {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wch-btn,
    .wch-cta-btn,
    .wch-info-card {
        transition: none;
    }
}

/* Elementor inline control safety: keep the mobile version premium even when desktop padding controls are active. */
@media (max-width: 640px) {
    .wch-hero .wch-left { padding: 28px 18px 18px !important; }
    .wch-hero .wch-right { padding: 14px 14px 18px !important; }
    .wch-hero .wch-btn { padding: 16px 18px !important; }
}

@media (max-width: 380px) {
    .wch-hero .wch-left { padding-left: 15px !important; padding-right: 15px !important; }
    .wch-hero .wch-right { padding-left: 12px !important; padding-right: 12px !important; }
}


/* ===== Mobile repair patch: hero CTA + overflow ===== */
@media (max-width: 767px) {
    .wch-hero,
    .wch-wrapper,
    .wch-section,
    .elementor-widget-waycare_hero,
    .elementor-widget-contact_hero {
        overflow-x: hidden !important;
    }

    .wch-left,
    .wch-content {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .wch-heading {
        font-size: clamp(38px, 11vw, 54px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.04em !important;
        word-break: normal !important;
    }

    .wch-subtext {
        font-size: 17px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        color: #6f7e92 !important;
    }

    .wch-btns,
    .wch-buttons,
    .wch-cta-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .wch-btn,
    .wch-button,
    .wch-primary-btn,
    .wch-secondary-btn,
    .wch-btns a,
    .wch-buttons a,
    .wch-cta-buttons a {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 18px !important;
        border-radius: 999px !important;
        font-size: 16px !important;
        font-weight: 850 !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        text-align: center !important;
        overflow: hidden !important;
        opacity: 1 !important;
    }

    .wch-btn:first-child,
    .wch-primary-btn,
    .wch-btns a:first-child,
    .wch-buttons a:first-child,
    .wch-cta-buttons a:first-child {
        color: #ffffff !important;
        background: linear-gradient(135deg, #35d7b4, #07988f) !important;
        box-shadow: 0 18px 42px rgba(7, 152, 143, 0.22) !important;
    }

    .wch-btn:nth-child(2),
    .wch-secondary-btn,
    .wch-btns a:nth-child(2),
    .wch-buttons a:nth-child(2),
    .wch-cta-buttons a:nth-child(2) {
        color: #087f78 !important;
        background: #e9fbf8 !important;
        border: 1px solid rgba(7, 152, 143, 0.18) !important;
    }

    .wch-btn *,
    .wch-button *,
    .wch-btns a *,
    .wch-buttons a *,
    .wch-cta-buttons a * {
        color: inherit !important;
        fill: currentColor !important;
        max-width: 100% !important;
        opacity: 1 !important;
    }

    .wch-pills,
    .wch-tags,
    .wch-features {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 22px !important;
    }
}
