/* ================================================================
   HMD Elementor Widgets – Master Stylesheet
   ================================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.hmd-hero {
    background-color: #f5f0eb;
    padding: 80px 20px;
    text-align: center;
}
.hmd-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}
.hmd-hero__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
    animation: hmd-pulse 1.8s ease-in-out infinite;
}
.hmd-hero__heading {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 16px;
}
.hmd-hero__sub {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ── REVIEWS ──────────────────────────────────────────────── */
.hmd-reviews {
    background: #fff;
    padding: 60px 20px;
}
.hmd-reviews__header {
    margin-bottom: 36px;
}
.hmd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 14px;
}
.hmd-badge--google { letter-spacing: 0.03em; }

.hmd-reviews__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.hmd-reviews__title {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.hmd-reviews__rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hmd-reviews__rating-num {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}
.hmd-reviews__stars { display: flex; gap: 2px; }
.hmd-review-card__star { color: #fbbc04; font-size: 16px; line-height: 1; }
.hmd-reviews__total { font-size: 13px; color: #666; }

/* Grid */
.hmd-reviews__grid {
    display: grid;
    gap: 20px;
}
.hmd-reviews__grid--1col { grid-template-columns: 1fr; }
.hmd-reviews__grid--2col { grid-template-columns: repeat(2, 1fr); }
.hmd-reviews__grid--3col { grid-template-columns: repeat(3, 1fr); }

/* Review Card */
.hmd-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hmd-review-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hmd-review-card__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #4285f4;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hmd-review-card__meta { flex: 1; min-width: 0; }
.hmd-review-card__name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px;
}
.hmd-review-card__subtitle { font-size: 12px; color: #888; }
.hmd-verified { flex-shrink: 0; }
.hmd-review-card__gicon { margin-left: auto; flex-shrink: 0; }
.hmd-review-card__stars { display: flex; gap: 2px; }
.hmd-review-card__text { font-size: 14px; color: #444; line-height: 1.6; margin: 0; flex: 1; }
.hmd-review-card__footer {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}
.hmd-review-card__share { cursor: pointer; }
.hmd-review-card__helpful { display: flex; align-items: center; gap: 4px; }

/* CTA Button */
.hmd-reviews__cta { text-align: center; margin-top: 36px; }
.hmd-reviews__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: box-shadow .2s, border-color .2s;
}
.hmd-reviews__cta-btn:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    border-color: #bbb;
}

/* ── STORIES ──────────────────────────────────────────────── */
.hmd-stories {
    background: #f5f0eb;
    padding: 60px 20px;
}
.hmd-stories__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.hmd-stories__left {
    width: 38%;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}
.hmd-stories__right {
    flex: 1;
    overflow: hidden;
}

.hmd-stories__live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e53935;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.hmd-stories__live-dot {
    width: 8px; height: 8px;
    background: #e53935;
    border-radius: 50%;
    animation: hmd-pulse 1.4s ease-in-out infinite;
}
.hmd-stories__title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.hmd-stories__desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 8px;
}
.hmd-stories__refresh {
    font-size: 12px;
    color: #999;
    margin: 0 0 28px;
}

/* Slider controls */
.hmd-slider-controls {
    display: flex;
    gap: 12px;
    margin: 20px 0 16px;
}
.hmd-slider-arrow {
    width: 40px; height: 40px;
    border: 1.5px solid #1a1a1a;
    border-radius: 50%;
    background: transparent;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.hmd-slider-arrow:hover { background: #1a1a1a; color: #fff; }

.hmd-slider-dots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.hmd-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.hmd-slider-dot.active {
    background: #1a1a1a;
    transform: scale(1.3);
}

/* Slider wrapper + track */
.hmd-slider-wrapper {
    overflow: hidden;
    position: relative;
}
.hmd-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Story Card */
.hmd-story-card {
    min-width: 280px;
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.hmd-story-card__img-wrap { position: relative; }
.hmd-story-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.hmd-story-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}
.hmd-live-dot {
    width: 6px; height: 6px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: hmd-pulse 1.4s ease-in-out infinite;
}
.hmd-story-card__body {
    padding: 12px 14px 14px;
}
.hmd-story-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.hmd-story-card__name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.hmd-story-card__location { font-size: 12px; color: #888; }
.hmd-story-card__service {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 8px;
}
.hmd-story-card__quote {
    font-size: 13px;
    color: #444;
    line-height: 1.55;
    margin: 0;
}

/* ── TEAM ─────────────────────────────────────────────────── */
.hmd-team {
    background: #f5f0eb;
    padding: 60px 20px;
}
.hmd-team__header {
    text-align: center;
    margin-bottom: 40px;
}
.hmd-team__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.hmd-team__title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.hmd-team__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Grid */
.hmd-team__grid {
    display: grid;
    gap: 20px;
}
.hmd-team__grid--2col { grid-template-columns: repeat(2, 1fr); }
.hmd-team__grid--3col { grid-template-columns: repeat(3, 1fr); }
.hmd-team__grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Team Card */
.hmd-team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hmd-team-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.hmd-team-card__body {
    padding: 14px;
}
.hmd-team-card__name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}
.hmd-team-card__name { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.hmd-team-card__years { font-size: 12px; color: #888; }
.hmd-team-card__role {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #666;
    margin-bottom: 4px;
}
.hmd-team-card__spec { font-size: 13px; color: #444; margin-bottom: 10px; }
.hmd-team-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.hmd-team-card__langs { font-size: 12px; color: #666; }
.hmd-team-card__certified {
    font-size: 11px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.hmd-marquee {
    overflow: hidden;
    width: 100%;
    background: #1a1a1a; /* overridden by inline var from PHP */
    padding: 14px 0;
    position: relative;
}

/* Fade edges */
.hmd-marquee::before,
.hmd-marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.hmd-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--hmd-marquee-bg, #1a1a1a), transparent);
}
.hmd-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--hmd-marquee-bg, #1a1a1a), transparent);
}

.hmd-marquee__track {
    display: flex;
    width: max-content;
    animation: hmd-marquee-scroll var(--hmd-marquee-speed, 30s) linear infinite;
    animation-direction: var(--hmd-marquee-dir, normal);
}

/* Pause on hover */
.hmd-marquee--pausable:hover .hmd-marquee__track {
    animation-play-state: paused;
}

.hmd-marquee__set {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.hmd-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    margin-right: 40px; /* overridden by Elementor control */
}

.hmd-marquee__sep {
    color: #f5c843;
    font-size: 0.85em;
    line-height: 1;
}

@keyframes hmd-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── ANIMATION ────────────────────────────────────────────── */
@keyframes hmd-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(0.85); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hmd-reviews__grid--3col { grid-template-columns: repeat(2, 1fr); }
    .hmd-team__grid--4col    { grid-template-columns: repeat(2, 1fr); }
    .hmd-team__grid--3col    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hmd-stories__layout {
        flex-direction: column;
        gap: 24px;
    }
    .hmd-stories__left {
        width: 100% !important;
        position: static;
    }
    .hmd-reviews__grid--3col,
    .hmd-reviews__grid--2col { grid-template-columns: 1fr; }
    .hmd-team__grid--4col,
    .hmd-team__grid--3col,
    .hmd-team__grid--2col    { grid-template-columns: repeat(2, 1fr); }
    .hmd-reviews__title-row  { flex-direction: column; gap: 10px; }
    .hmd-hero__heading       { font-size: 28px; }
}

@media (max-width: 480px) {
    .hmd-team__grid--4col,
    .hmd-team__grid--3col,
    .hmd-team__grid--2col { grid-template-columns: 1fr; }
    .hmd-story-card { min-width: 260px; width: 280px; }
}
