/* ── HB Homepage Widget 3 — Social Proof ── */

.mmh3-widget {
        background: linear-gradient(135deg, #e8f7f8 0%, #d0f0f1 50%, #c0e8ea 100%);
        border-radius: 18px;
        padding: 2rem 2rem 1.75rem;
        max-width: 340px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        text-align: center;
        animation: mmh3-enter 0.5s ease both;
        opacity: 0;
        transform: translateY(12px);
}

.mmh3-widget--landscape {
        max-width: 680px;
        display: flex;
        align-items: center;
        gap: 2.5rem;
        text-align: left;
        padding: 2rem 2.5rem;
}

@keyframes mmh3-enter {
        to { opacity: 1; transform: translateY(0); }
}

/* ── Orbs ── */
.mmh3-orb {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        opacity: 0.4;
}
.mmh3-orb--1 {
        width: 160px; height: 160px;
        background: radial-gradient(circle, #2bb5ba55, transparent 70%);
        top: -50px; right: -50px;
        animation: mmh3-float1 7s ease-in-out infinite;
}
.mmh3-orb--2 {
        width: 100px; height: 100px;
        background: radial-gradient(circle, #1a444430, transparent 70%);
        bottom: -25px; left: -25px;
        animation: mmh3-float2 9s ease-in-out infinite 1.5s;
}
@keyframes mmh3-float1 {
        0%, 100% { transform: translate(0,0) scale(1); }
        50%       { transform: translate(-14px,18px) scale(1.1); }
}
@keyframes mmh3-float2 {
        0%, 100% { transform: translate(0,0) scale(1); }
        50%       { transform: translate(16px,-12px) scale(0.9); }
}

/* ── Testimonial block ── */
.mmh3-testimonial {
        flex: 1;
        min-width: 0;
}

/* ── Stars ── */
.mmh3-stars {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-bottom: 0.9rem;
}
.mmh3-widget--landscape .mmh3-stars {
        justify-content: flex-start;
}
.mmh3-stars svg {
        width: 22px;
        height: 22px;
        color: #2bb5ba;
        flex-shrink: 0;
}

/* ── Quote ── */
.mmh3-quote {
        margin: 0 0 1.1rem;
        padding: 0;
        border: none;
        min-height: 4.5em;
        display: flex;
        align-items: center;
        justify-content: center;
}
.mmh3-widget--landscape .mmh3-quote {
        justify-content: flex-start;
        min-height: 3.5em;
}
.mmh3-quote__text {
        font-size: 0.9rem;
        color: #1a4444;
        font-style: italic;
        line-height: 1.65;
        margin: 0;
        transition: opacity 0.35s, transform 0.35s;
}
.mmh3-quote__text::before {
        content: '\201C';
        font-size: 2.2rem;
        color: #2bb5ba;
        line-height: 0;
        vertical-align: -0.55em;
        margin-right: 2px;
        font-style: normal;
        font-weight: 900;
}
.mmh3-quote__text.mmh3-fade-out {
        opacity: 0;
        transform: translateY(-6px);
}
.mmh3-quote__text.mmh3-fade-in {
        opacity: 0;
        transform: translateY(6px);
}

/* ── Author ── */
.mmh3-author {
        display: flex;
        align-items: center;
        gap: 11px;
        justify-content: center;
}
.mmh3-widget--landscape .mmh3-author {
        justify-content: flex-start;
}
.mmh3-author__avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 0 0 3px rgba(43,181,186,0.3);
        transition: opacity 0.35s;
        flex-shrink: 0;
}
.mmh3-author__avatar.mmh3-fade-out { opacity: 0; }
.mmh3-author__avatar.mmh3-fade-in  { opacity: 0; }
.mmh3-author__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 50%;
}
.mmh3-author__info {
        display: flex;
        flex-direction: column;
        text-align: left;
}
.mmh3-author__name {
        font-size: 0.86rem;
        font-weight: 700;
        color: #1a4444;
        transition: opacity 0.35s;
}
.mmh3-author__name.mmh3-fade-out { opacity: 0; }
.mmh3-author__name.mmh3-fade-in  { opacity: 0; }
.mmh3-author__role {
        font-size: 0.74rem;
        color: #6a9898;
}

/* ── CTA block ── */
.mmh3-cta {
        border-top: 1px solid rgba(43,181,186,0.25);
        padding-top: 1.2rem;
        margin-top: 1.2rem;
}
.mmh3-widget--landscape .mmh3-cta {
        border-top: none;
        border-left: 1px solid rgba(43,181,186,0.25);
        padding-top: 0;
        padding-left: 2.5rem;
        margin-top: 0;
        flex: 1;
        min-width: 0;
}

.mmh3-title {
        font-size: 1.25rem !important;
        font-weight: 900 !important;
        color: #1a4444 !important;
        margin: 0 0 0.35rem !important;
        padding: 0 !important;
        border: none !important;
        line-height: 1.2 !important;
}
.mmh3-subtitle {
        font-size: 0.82rem;
        color: #3a6060;
        margin: 0 0 1rem;
        line-height: 1.45;
}

/* ── Button ── */
@keyframes mmh3-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(43,181,186,0.55); }
        70%  { box-shadow: 0 0 0 12px rgba(43,181,186,0); }
        100% { box-shadow: 0 0 0 0 rgba(43,181,186,0); }
}
.mmh3-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.9rem 1.5rem;
        background: #2bb5ba;
        color: #fff !important;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 50px;
        text-decoration: none !important;
        position: relative;
        overflow: hidden;
        transition: background 0.22s, transform 0.18s;
        box-shadow: 0 4px 18px rgba(43,181,186,0.35);
        animation: mmh3-pulse 2s ease-out infinite;
        margin-bottom: 0.75rem;
}
.mmh3-btn:hover {
        background: #1a9fa4;
        transform: translateY(-2px);
        animation: none;
        box-shadow: 0 8px 28px rgba(43,181,186,0.5);
}
.mmh3-btn:active { transform: translateY(0); }
.mmh3-btn__arrow {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        transition: transform 0.2s;
}
.mmh3-btn:hover .mmh3-btn__arrow { transform: translateX(4px); }

.mmh3-widget--landscape .mmh3-btn {
        width: 100%;
        padding: 0.8rem 1.2rem;
        font-size: 0.88rem;
}

/* Ripple */
.mmh3-ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,0.35);
        transform: scale(0);
        animation: mmh3-ripple-anim 0.55s linear;
        pointer-events: none;
}
@keyframes mmh3-ripple-anim {
        to { transform: scale(4); opacity: 0; }
}

/* ── Meta ── */
.mmh3-meta {
        font-size: 0.75rem;
        color: #6a9898;
        margin: 0;
        line-height: 1.4;
}

/* ── Responsive: collapse landscape to portrait on small screens ── */
@media (max-width: 560px) {
        .mmh3-widget--landscape {
                flex-direction: column;
                text-align: center;
                max-width: 340px;
                padding: 2rem 1.5rem 1.75rem;
        }
        .mmh3-widget--landscape .mmh3-stars {
                justify-content: center;
        }
        .mmh3-widget--landscape .mmh3-author {
                justify-content: center;
        }
        .mmh3-widget--landscape .mmh3-cta {
                border-left: none;
                border-top: 1px solid rgba(43,181,186,0.25);
                padding-left: 0;
                padding-top: 1.2rem;
                margin-top: 1.2rem;
                width: 100%;
                text-align: center;
        }
        .mmh3-widget--landscape .mmh3-btn {
                width: 100%;
                font-size: 1rem;
                padding: 0.9rem 1.5rem;
        }
        .mmh3-widget--landscape .mmh3-meta {
                text-align: center;
        }
}
