/* ============================================================
   DHD Hero Widget — v1.0.0
   Font strategy: root uses `inherit` so widget adopts the site's theme
   font. Montserrat + Playfair Display are enqueued and available via
   Elementor typography controls. Explicit family assignments below can
   all be overridden per element in Elementor.
   ============================================================ */

.dhd-hero {
    background: #FAF6EE;
    padding: 56px 24px 72px;
    font-family: inherit;
    color: #2E3E52;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.dhd-hero *,
.dhd-hero *::before,
.dhd-hero *::after {
    box-sizing: border-box;
}

/* Subtle warm glow behind the image column */
.dhd-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(217, 123, 94, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.dhd-glow-no .dhd-hero::before { display: none; }

.dhd-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Left column --- */

.dhd-hero__content {
    padding: 20px 0;
}

.dhd-hero__eyebrow {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(217, 123, 94, 0.1);
    border: 1px solid rgba(217, 123, 94, 0.15);
    border-radius: 100px;
    color: #2E3E52;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    line-height: 1.4;
}

.dhd-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    color: #2E3E52;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}

.dhd-hero__body {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(46, 62, 82, 0.7);
    margin: 0 0 32px 0;
    max-width: 520px;
}

/* --- Feature list --- */

.dhd-hero__features {
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

.dhd-hero__feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(46, 62, 82, 0.08);
    font-size: 15px;
    font-weight: 500;
    color: #2E3E52;
}
.dhd-hero__feature:last-child { border-bottom: 0; }

.dhd-hero__feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(217, 123, 94, 0.1);
    color: #D97B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dhd-hero__feature-icon svg { width: 20px; height: 20px; display: block; }
.dhd-hero__feature-icon i { font-size: 18px; line-height: 1; color: inherit; }
.dhd-hero__feature-icon img { width: 22px; height: 22px; object-fit: contain; }

/* --- CTAs --- */

.dhd-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dhd-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    line-height: 1;
    font-family: inherit;
}

.dhd-hero__cta--primary {
    background: #D97B5E;
    color: #FFFFFF !important;
    border-color: #D97B5E;
}
.dhd-hero__cta--primary:hover,
.dhd-hero__cta--primary:focus {
    background: #C56A4E;
    border-color: #C56A4E;
    color: #FFFFFF !important;
}

.dhd-hero__cta--secondary {
    background: transparent;
    color: #2E3E52 !important;
    border-color: #2E3E52;
}
.dhd-hero__cta--secondary:hover,
.dhd-hero__cta--secondary:focus {
    background: #2E3E52;
    color: #FFFFFF !important;
}

.dhd-hero__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.dhd-hero__cta i { font-size: 14px; line-height: 1; color: inherit; }

/* --- Right column: image + overlays --- */

.dhd-hero__media {
    position: relative;
    aspect-ratio: 4 / 4.2;
    min-height: 520px;
}

.dhd-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Placeholder shown when no image is uploaded */
.dhd-hero__image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(217, 123, 94, 0.15) 0%, rgba(46, 62, 82, 0.25) 100%),
        linear-gradient(180deg, #E5D5BC 0%, #C4B396 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.dhd-hero__image-placeholder svg { width: 96px; height: 96px; opacity: 0.9; }
.dhd-hero__image-placeholder-label {
    font-size: 14px;
    font-weight: 500;
    background: rgba(46, 62, 82, 0.4);
    padding: 8px 16px;
    border-radius: 100px;
}

/* --- Overlay cards (shared) --- */

.dhd-hero__overlay {
    position: absolute;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(46, 62, 82, 0.08), 0 1px 3px rgba(46, 62, 82, 0.04);
}

/* Google rating (top right) */
.dhd-hero__overlay--rating {
    top: 32px;
    right: 32px;
    padding: 18px 22px;
    min-width: 160px;
    text-align: center;
}
.dhd-hero__rating-google {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.dhd-hero__rating-google-g1 { color: #4285F4; }
.dhd-hero__rating-google-g2 { color: #EA4335; }
.dhd-hero__rating-google-g3 { color: #FBBC05; }
.dhd-hero__rating-google-g4 { color: #4285F4; }
.dhd-hero__rating-google-g5 { color: #34A853; }
.dhd-hero__rating-google-g6 { color: #EA4335; }
.dhd-hero__rating-stars {
    color: #FBBC05;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.dhd-hero__rating-score {
    font-size: 26px;
    font-weight: 700;
    color: #2E3E52;
    letter-spacing: -0.01em;
    line-height: 1;
}
.dhd-hero__rating-score sup {
    font-size: 14px;
    color: rgba(46, 62, 82, 0.6);
    font-weight: 500;
}
.dhd-hero__rating-source {
    font-size: 11px;
    color: rgba(46, 62, 82, 0.6);
    margin-top: 4px;
}

/* Credentials (middle right) */
.dhd-hero__overlay--credentials {
    top: 44%;
    right: 32px;
    padding: 18px 20px;
    min-width: 220px;
}
.dhd-hero__cred-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
}
.dhd-hero__cred-item + .dhd-hero__cred-item {
    border-top: 1px solid rgba(46, 62, 82, 0.08);
    padding-top: 14px;
    margin-top: 6px;
}
.dhd-hero__cred-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(217, 123, 94, 0.1);
    color: #D97B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dhd-hero__cred-icon svg { width: 18px; height: 18px; }
.dhd-hero__cred-icon i { font-size: 16px; color: inherit; }
.dhd-hero__cred-title {
    font-size: 13px;
    font-weight: 600;
    color: #2E3E52;
    line-height: 1.2;
    margin-bottom: 2px;
}
.dhd-hero__cred-sub {
    font-size: 11px;
    color: rgba(46, 62, 82, 0.6);
    line-height: 1.3;
}

/* Floating cards */
.dhd-hero__overlay--float1,
.dhd-hero__overlay--float2 {
    bottom: 24px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 240px;
}
.dhd-hero__overlay--float1 { left: 24px; }
.dhd-hero__overlay--float2 { right: 24px; }

.dhd-hero__float-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(217, 123, 94, 0.1);
    color: #D97B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 13px;
}
.dhd-hero__float-icon svg { width: 20px; height: 20px; }
.dhd-hero__float-icon i { font-size: 18px; color: inherit; }
.dhd-hero__float-icon img { width: 24px; height: 24px; object-fit: contain; }
.dhd-hero__icon-text { font-weight: 700; font-size: 13px; }

.dhd-hero__float-title {
    font-size: 13px;
    font-weight: 600;
    color: #2E3E52;
    line-height: 1.2;
    margin-bottom: 2px;
}
.dhd-hero__float-sub {
    font-size: 11px;
    color: rgba(46, 62, 82, 0.6);
    line-height: 1.3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .dhd-hero__inner {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }
    .dhd-hero__media {
        max-width: 640px;
        margin: 0 auto;
        aspect-ratio: 4 / 4;
        min-height: 480px;
    }
    .dhd-hero__body { max-width: none !important; }
}

@media (max-width: 720px) {
    .dhd-hero__title { font-size: 36px !important; }
    .dhd-hero__body { font-size: 15px !important; }
    .dhd-hero__media {
        min-height: 380px !important;
        aspect-ratio: 4 / 4.5 !important;
    }
    .dhd-hero__ctas { flex-direction: column !important; }
    .dhd-hero__cta {
        justify-content: center !important;
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
    }

    /* Rating card — compact pill treatment */
    .dhd-hero__overlay--rating {
        top: 12px !important;
        right: 12px !important;
        padding: 8px 12px !important;
        min-width: 0 !important;
        max-width: 115px !important;
    }
    .dhd-hero__rating-google {
        font-size: 12px !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
    }
    .dhd-hero__rating-stars {
        font-size: 10px !important;
        letter-spacing: 1px !important;
        margin-bottom: 3px !important;
    }
    .dhd-hero__rating-score {
        font-size: 14px !important;
        line-height: 1 !important;
    }
    .dhd-hero__rating-score sup { font-size: 9px !important; }
    .dhd-hero__rating-source {
        font-size: 9px !important;
        margin-top: 2px !important;
        line-height: 1.2 !important;
    }

    .dhd-hero__overlay--credentials { display: none !important; }

    /* Bottom floating cards */
    .dhd-hero__overlay--float1,
    .dhd-hero__overlay--float2 {
        bottom: 12px !important;
        padding: 8px 12px !important;
        max-width: 46% !important;
        gap: 8px !important;
    }
    .dhd-hero__overlay--float1 { left: 12px !important; }
    .dhd-hero__overlay--float2 { right: 12px !important; }
    .dhd-hero__float-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }
    .dhd-hero__float-icon svg { width: 16px !important; height: 16px !important; }
    .dhd-hero__icon-text { font-size: 11px !important; }
    .dhd-hero__float-title {
        font-size: 11px !important;
        line-height: 1.15 !important;
        margin-bottom: 1px !important;
    }
    .dhd-hero__float-sub {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
}

/* Extra-small phones (<380px) — squeeze the rating card further */
@media (max-width: 380px) {
    .dhd-hero__overlay--rating {
        max-width: 100px !important;
        padding: 7px 10px !important;
    }
    .dhd-hero__rating-google { font-size: 11px !important; }
    .dhd-hero__rating-score { font-size: 13px !important; }
    .dhd-hero__rating-source { font-size: 8px !important; }
    .dhd-hero__overlay--float1,
    .dhd-hero__overlay--float2 { max-width: 47% !important; padding: 7px 10px !important; }
    .dhd-hero__float-title { font-size: 10px !important; }
    .dhd-hero__float-sub { font-size: 9px !important; }
}
