/* ================================================================
   HERO V2  —  Professional pediatric dentist hero
   Layout: sky/clouds bg | left: text | right: doctor photo frame
================================================================ */

/* ── SECTION ─────────────────────────────────────────────── */
.hx-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ── GRID  2-col desktop ─────────────────────────────────── */
.hx-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    min-height: 520px;
    padding: 50px 0 100px;
    gap: 0;
}

/* ── LEFT COPY ───────────────────────────────────────────── */
.hx-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 32px;
    z-index: 4;
}

.hx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #e95996;
    background: rgba(255,240,245,0.95);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}

.hx-heading {
    font-size: 52px;
    line-height: 1.06;
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #092d68;
}

.hx-heading em     { font-style: normal; color: #f93d91; }
.hx-heading strong { color: #168de7; font-weight: 900; }

.hx-sub {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    margin: 0 0 20px;
    color: #2a3a5c;
    max-width: 420px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.hx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hx-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 99px;
    text-decoration: none;
    color: #fff !important;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(9,45,104,.18);
}

.hx-btn-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── TRUST ROW ───────────────────────────────────────────── */
.hx-trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hx-rating,
.hx-trusted {
    background: rgba(255,255,255,0.93);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(80,150,162,.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
}

.hx-google-g {
    font-size: 24px;
    color: #4285f4;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
}

.hx-gold {
    color: #ffbc18;
    letter-spacing: 1px;
    display: block;
    font-size: 11px;
}

.hx-trusted { gap: 8px; }

.hx-faces { display: flex; flex-shrink: 0; }

.hx-faces svg {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -6px;
    flex-shrink: 0;
}

.hx-faces svg:first-child { margin-left: 0; }

.hx-trusted-text b {
    font-size: 14px;
    color: #172747;
    display: block;
    line-height: 1.1;
    font-weight: 900;
}

.hx-trusted-text small {
    color: #667;
    font-size: 8px;
    display: block;
}

/* ══════════════════════════════════════════════════════════
   RIGHT ART — big rounded photo frame, bottom-anchored
══════════════════════════════════════════════════════════ */
.hx-art {
    position: relative;
    z-index: 3;
    display: flex !important;
    visibility: visible !important;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 20px;
}

/* the rounded photo frame */
.hx-photo-frame {
    position: relative;
    width: 390px;
    height: 430px;
    border-radius: 200px 200px 160px 160px;
    overflow: hidden;
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.7),
        0 0 0 12px rgba(249,61,145,0.18),
        0 20px 60px rgba(9,45,104,0.22);
    flex-shrink: 0;
}

.hx-photo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ── SPEECH BUBBLE ───────────────────────────────────────── */
.hx-speech {
    position: absolute;
    right: -10px;
    top: 30px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 50px;
    z-index: 6;
    color: #168eea;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 4px 16px rgba(71,136,183,.22);
    line-height: 1.4;
    white-space: nowrap;
}

/* ── BOTTOM WAVE ─────────────────────────────────────────── */
.hx-wave {
    position: absolute;
    z-index: 4;
    bottom: -55px;
    left: -2%;
    width: 104%;
    height: 120px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    transform: rotate(-1deg);
}

/* ================================================================
   LARGE DESKTOP  ≥ 1400px
================================================================ */
@media (min-width: 1400px) {
    .hx-section       { min-height: 600px; }
    .hx-grid          { min-height: 600px; padding: 60px 0 110px; }
    .hx-heading       { font-size: 58px; }
    .hx-photo-frame   { width: 430px; height: 480px; }
}

/* ================================================================
   TABLET  769px – 1100px
================================================================ */
@media (max-width: 1100px) and (min-width: 769px) {
    .hx-section     { min-height: 460px; }
    .hx-grid        { min-height: 460px; padding: 38px 0 88px; grid-template-columns: 56% 44%; }
    .hx-heading     { font-size: 40px; }
    .hx-sub         { font-size: 13px; max-width: 340px; }
    .hx-photo-frame { width: 310px; height: 350px; border-radius: 160px 160px 130px 130px; }
    .hx-speech      { font-size: 10px; right: -5px; top: 20px; }
}

/* ================================================================
   MOBILE  ≤ 768px  —  stacked, image top, copy below
================================================================ */
@media (max-width: 768px) {

    .hx-section {
        min-height: unset;
        background-position: center top !important;
    }

    .hx-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
        min-height: unset !important;
        padding: 24px 0 0 !important;
        gap: 0;
    }

    /* photo on top */
    .hx-art {
        order: 1;
        justify-content: center;
        align-items: center;
        padding-bottom: 0;
        height: auto !important;
        min-height: unset !important;
        display: flex !important;
        visibility: visible !important;
    }

    .hx-photo-frame {
        width: 240px;
        height: 280px;
        border-radius: 130px 130px 110px 110px;
        box-shadow:
            0 0 0 5px rgba(255,255,255,0.7),
            0 0 0 10px rgba(249,61,145,0.15),
            0 14px 40px rgba(9,45,104,0.18);
    }

    .hx-speech { display: none !important; }

    /* copy below */
    .hx-copy {
        order: 2;
        padding: 20px 16px 32px;
        text-align: center;
        align-items: center;
        padding-right: 16px;
    }

    .hx-eyebrow {
        font-size: 9px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }

    .hx-heading {
        font-size: clamp(26px, 7.5vw, 34px) !important;
        letter-spacing: -0.3px;
        margin-bottom: 10px;
        text-align: center;
    }

    .hx-sub {
        font-size: 12px;
        text-align: center;
        margin-bottom: 14px;
        max-width: 340px;
    }

    .hx-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 8px;
        margin-bottom: 14px;
        align-items: center;
    }

    .hx-btn {
        width: 100% !important;
        justify-content: center;
        padding: 13px 16px;
        font-size: 11px;
    }

    .hx-trust {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hx-rating,
    .hx-trusted {
        flex: 1 1 auto;
        padding: 8px 10px;
        min-height: 52px;
        justify-content: center;
    }

    .hx-wave { display: none; }
}

/* ================================================================
   SMALL PHONES  ≤ 420px
================================================================ */
@media (max-width: 420px) {
    .hx-photo-frame { width: 200px; height: 240px; border-radius: 110px 110px 90px 90px; }
    .hx-heading     { font-size: 24px !important; }
    .hx-actions     { max-width: 250px; }
    .hx-trust       { flex-direction: column; max-width: 250px; }
    .hx-rating,
    .hx-trusted     { width: 100%; }
}
