/* ============================================================
   Handyman Hero Section — hero-section.css
   v1.2.0 — adds social proof bar + worker illustration
   ============================================================ */

:root {
    --hh-blue:         #1E3A8A;
    --hh-blue-mid:     #162f70;
    --hh-orange:       #F97316;
    --hh-orange-dark:  #ea6507;
    --hh-white:        #ffffff;
    --hh-white-85:     rgba(255,255,255,0.85);
    --hh-white-70:     rgba(255,255,255,0.70);
    --hh-white-50:     rgba(255,255,255,0.50);
    --hh-r-md:         14px;
    --hh-r-lg:         28px;
    --hh-r-pill:       999px;
}

/* ── Scoped reset ───────────────────────────────────────────── */
.hh-hero *,
.hh-hero *::before,
.hh-hero *::after {
    box-sizing: border-box;
}

/* ── Elementor fix ──────────────────────────────────────────── */
.elementor-widget-shortcode .elementor-widget-container .hh-hero,
.elementor-widget-text-editor .elementor-widget-container .hh-hero {
    font-size: 1rem !important;
}
.elementor-widget-shortcode .elementor-widget-container > p,
.elementor-widget-text-editor .elementor-widget-container > p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Section ────────────────────────────────────────────────── */
.hh-hero {
    position: relative;
    isolation: isolate;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--hh-white);
    overflow: hidden;
    padding: 72px 24px 88px;

    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.16) 0%, transparent 26%),
        radial-gradient(circle at 84% 24%, rgba(249,115,22,0.35) 0%, transparent 28%),
        linear-gradient(120deg, #1E3A8A 0%, #1a3278 45%, #c45d10 80%, #F97316 100%);
}

/* Background grid */
.hh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.55;
    pointer-events: none;
}

/* Glow orb */
.hh-hero::after {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -220px;
    top: -260px;
    z-index: -1;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.05) 35%, transparent 70%);
    pointer-events: none;
}

/* ── Layout ─────────────────────────────────────────────────── */
.hh-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: 80px;
    align-items: center;
}

/* ── Left column ─────────────────────────────────────────────── */
.hh-hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

/* Badge */
.hh-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 16px 8px 8px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--hh-r-pill);
    color: var(--hh-white-85);
    font-size: 0.82rem;
    font-weight: 700;
}
.hh-badge__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--hh-orange);
    flex-shrink: 0;
}
.hh-badge__icon-wrap svg { width: 15px; height: 15px; }

/* Heading */
.hh-hero__heading {
    margin: 0;
    color: var(--hh-white);
    font-size: clamp(2.2rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}
.hh-hero__highlight {
    color: var(--hh-orange);
    font-style: italic;
    font-weight: 800;
}

/* Description */
.hh-hero__desc {
    max-width: 520px;
    margin: 0;
    color: var(--hh-white-85);
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
}

/* ══════════════════════════════════════════════
   SOCIAL PROOF BAR
═══════════════════════════════════════════════ */
.hh-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stacked avatars */
.hh-proof__avatars {
    display: flex;
    align-items: center;
}
.hh-proof__av {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.70);
    overflow: hidden;
    margin-left: -10px;
    flex-shrink: 0;
    background: var(--hh-blue);
}
.hh-proof__av:first-child { margin-left: 0; }
.hh-proof__av svg { width: 40px; height: 40px; display: block; }

/* +50 bubble */
.hh-proof__av--more {
    background: rgba(255,255,255,0.18);
    border: 2.5px solid rgba(255,255,255,0.55);
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--hh-white);
    letter-spacing: -0.02em;
    overflow: visible;
}

/* Vertical divider */
.hh-proof__divider {
    display: block;
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.28);
    flex-shrink: 0;
}

/* Stars + text */
.hh-proof__rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hh-proof__stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.hh-proof__star {
    width: 16px;
    height: 16px;
    color: #FBBF24;
    flex-shrink: 0;
}
.hh-proof__text {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.hh-proof__score {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--hh-white);
}
.hh-proof__count {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--hh-white-70);
}

/* ── CTA Button ─────────────────────────────────────────────── */
.hh-btn {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: var(--hh-orange);
    color: var(--hh-white);
    text-decoration: none;
    border-radius: var(--hh-r-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.15s ease;
    overflow: hidden;
    padding: 2px 20px 2px 2px;
    gap: 12px;
}
.hh-btn:hover {
    background: var(--hh-orange-dark);
    transform: translateY(-2px);
    color: var(--hh-white);
}
.hh-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border-radius: 50%;
    color: var(--hh-white);
    flex-shrink: 0;
    font-size: 1rem;
}
.hh-btn__text { font-weight: 700; }
.hh-btn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════
   RIGHT COLUMN — worker + form
═══════════════════════════════════════════════ */
.hh-hero__right {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 480px;
}

/* Handyman SVG illustration */
.hh-hero__worker {
    position: absolute;
    bottom: -20px;
    left: -75px;
    width: 250px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.30));
    /* Subtle entrance feel */
    animation: hh-worker-in 0.7s ease both;
}
.hh-hero__worker svg {
    width: 100%;
    height: auto;
    display: block;
}

.hh-hero__worker {
    animation: hh-worker-float 3s ease-in-out infinite;
}

@keyframes hh-worker-float {
    0%, 100% { transform: translateY(0px);    }
    50%       { transform: translateY(-10px);  }
}

@keyframes hh-worker-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ══════════════════════════════════════════════
   GLASS FORM WRAP
═══════════════════════════════════════════════ */
.hh-hero__form-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;
    box-shadow:
        0 28px 70px rgba(15,23,42,0.24),
        inset 0 1px 0 rgba(255,255,255,0.42);
    overflow: visible !important;
}
.hh-hero__form-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.12) 42%, rgba(255,255,255,0.04) 100%);
    pointer-events: none;
}
.hh-hero__form-wrap::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(30,58,138,0.10), rgba(249,115,22,0.16));
    pointer-events: none;
}
.hh-hero__form-wrap .srfm-form-container,
.hh-hero__form-wrap .srfm-form {
    position: relative;
    z-index: 2;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* SureForms CSS variables */
.hh-hero__form-wrap {
    --srfm-color-input-label:             #ffffff !important;
    --srfm-color-input-text:              #ffffff !important;
    --srfm-color-input-placeholder:       rgba(255,255,255,0.82) !important;
    --srfm-color-input-background:        rgba(255,255,255,0.13) !important;
    --srfm-color-input-background-hover:  rgba(255,255,255,0.18) !important;
    --srfm-color-input-border:            rgba(255,255,255,0.26) !important;
    --srfm-color-input-border-hover:      rgba(255,255,255,0.44) !important;
    --srfm-color-input-border-focus-glow: rgba(249,115,22,0.25) !important;
    --srfm-dropdown-placeholder-color:    rgba(255,255,255,0.82) !important;
    --srfm-dropdown-icon-color:           rgba(255,255,255,0.82) !important;
}
.hh-hero__form-wrap .srfm-block-label,
.hh-hero__form-wrap .srfm-block-legend,
.hh-hero__form-wrap label,
.hh-hero__form-wrap legend {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}
.hh-hero__form-wrap .srfm-required { color: #ffb4a2 !important; }
.hh-hero__form-wrap .srfm-block { margin-bottom: 2px !important; }
.hh-hero__form-wrap input,
.hh-hero__form-wrap textarea,
.hh-hero__form-wrap select,
.hh-hero__form-wrap .ts-control {
    width: 100% !important;
    min-height: 50px !important;
    background: rgba(255,255,255,0.13) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.26) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.hh-hero__form-wrap textarea { min-height: 110px !important; resize: vertical; }
.hh-hero__form-wrap input::placeholder,
.hh-hero__form-wrap textarea::placeholder,
.hh-hero__form-wrap .ts-control input::placeholder {
    color: rgba(255,255,255,0.82) !important;
    opacity: 1 !important;
}
.hh-hero__form-wrap input:focus,
.hh-hero__form-wrap textarea:focus,
.hh-hero__form-wrap .ts-control.focus,
.hh-hero__form-wrap .ts-control:focus-within {
    border-color: rgba(255,255,255,0.55) !important;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.16) !important;
    outline: none !important;
}
.hh-hero__form-wrap .srfm-dropdown-block,
.hh-hero__form-wrap .srfm-dropdown-common-wrap,
.hh-hero__form-wrap .ts-wrapper {
    position: relative !important;
    z-index: 9999 !important;
    overflow: visible !important;
}
.hh-hero__form-wrap .ts-control {
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}
.hh-hero__form-wrap .ts-control input,
.hh-hero__form-wrap .ts-control .item { color: #ffffff !important; }
.hh-hero__form-wrap .ts-dropdown {
    position: absolute !important;
    z-index: 99999 !important;
    max-height: 168px !important;
    overflow-y: auto !important;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(15,23,42,0.20) !important;
}
.hh-hero__form-wrap .ts-dropdown .option {
    color: #111827 !important;
    font-size: 0.95rem !important;
    padding: 12px 14px !important;
}
.hh-hero__form-wrap .ts-dropdown .active {
    background: rgba(249,115,22,0.12) !important;
    color: #111827 !important;
}
.hh-hero__form-wrap .ts-dropdown-icon svg path,
.hh-hero__form-wrap .clear-button svg path {
    stroke: rgba(255,255,255,0.82) !important;
}
.hh-hero__form-wrap .srfm-submit-container { position: relative; z-index: 1; }
.hh-hero__form-wrap .srfm-submit-container .wp-block-button { width: 100% !important; }
.hh-hero__form-wrap .srfm-submit-button {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--hh-orange) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 14px 34px rgba(249,115,22,0.34) !important;
    cursor: pointer !important;
}
.hh-hero__form-wrap .srfm-submit-button:hover { background: var(--hh-orange-dark) !important; }
.hh-hero__form-wrap .srfm-error-message {
    color: #ffd1d1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-top: 7px !important;
}
.hh-hero__form-wrap .srfm-success-box-description { color: #ffffff !important; }

/* ══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hh-hero { padding: 56px 20px 64px; }
    .hh-hero__inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .hh-hero__right {
        min-height: auto;
        justify-content: center;
    }
    .hh-hero__worker {
        left: -10px;
        width: 120px;
        bottom: -10px;
    }
    .hh-hero__form-wrap { max-width: 100%; }
    .hh-proof { gap: 12px; }
}

@media (max-width: 480px) {
    .hh-hero { padding: 44px 16px 56px; }
    .hh-hero__heading { font-size: clamp(1.85rem, 8vw, 2.45rem); }
    .hh-hero__desc { font-size: 0.92rem; max-width: 100%; }
    .hh-btn { width: 100%;max-width:fit-content !important; }
    .hh-hero__form-wrap { padding: 24px; border-radius: 24px;margin-left:17% !important; }
    .hh-proof__divider { display: none; }
	.hh-hero__worker{left: -70px !important;width: 231px !important;}
}

@media (prefers-reduced-motion: reduce) {
    .hh-btn,
    .hh-hero__worker { transition: none; animation: none; }
}