/* ══════════════════════════════════════════════════
   Home Services — Page Styles
   Color Theme: Warm Amber (#f57c00 / #ff9f0a)
   ══════════════════════════════════════════════════ */

/* ── Hero Layout ────────────────────────────────── */
.hs-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(245, 124, 0, 0.04) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 0;
    animation: hsDotDrift 30s linear infinite;
}

.hs-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -180px;
    width: 800px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(245, 124, 0, 0.07) 0%, rgba(255, 159, 10, 0.03) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: hsGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes hsDotDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes hsGlowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

.hs-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hs-hero-text {
    animation: hsFadeUp 0.8s ease-out both;
}

.hs-hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(245, 124, 0, 0.08);
    color: #f57c00;
    margin-bottom: 24px;
}

.hs-hero-text .headline-hero {
    margin-bottom: 20px;
}

.hs-hero-text .subhead {
    margin-bottom: 36px;
    max-width: 480px;
}

.hs-hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.hs-hero-trust-dots {
    display: flex;
    gap: 4px;
}

.hs-hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f57c00;
}

@keyframes hsFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Phone Mockup ───────────────────────────────── */
.hs-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: hsFadeUp 0.8s 0.3s ease-out both;
}

.hs-phone {
    position: relative;
    width: 290px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: hsPhoneFloat 6s ease-in-out infinite;
    z-index: 2;
}

.hs-phone::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(245, 124, 0, 0.12), transparent 70%);
    filter: blur(16px);
    z-index: -1;
}

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

.hs-screen {
    background: var(--bg-section);
    border-radius: 34px;
    overflow: hidden;
}

.hs-screen-header {
    padding: 12px 16px 10px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hs-screen-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f57c00, #ff9f0a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.hs-screen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hs-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
}

.hs-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hs-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hs-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.hs-msg-user {
    align-self: flex-end;
    background: #f57c00;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.hs-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.hs-typing.visible { opacity: 1; }

.hs-typing-dot {
    width: 7px;
    height: 7px;
    background: #86868b;
    border-radius: 50%;
    animation: hsTypingBounce 1.4s infinite;
}

.hs-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.hs-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes hsTypingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.hs-screen-input {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hs-screen-input-field {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.hs-screen-input-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f57c00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-screen-input-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ── Appointment Booked Notification ──────────── */
.hs-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.hs-notif.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.hs-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f57c00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* ── Floating Badges ────────────────────────────── */
.hs-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3;
}

.hs-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.hs-badge-1 {
    top: 10%;
    right: -60px;
    animation: hsBadgeFloat1 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.hs-badge-2 {
    bottom: 35%;
    left: -70px;
    animation: hsBadgeFloat2 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.hs-badge-3 {
    bottom: 10%;
    right: -50px;
    animation: hsBadgeFloat3 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.hs-badge.visible { animation-play-state: running; }

.hs-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-badge-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes hsBadgeFloat1 { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes hsBadgeFloat2 { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes hsBadgeFloat3 { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

/* ── Section Spacing ───────────────────────────── */
.hs-process,
.hs-benefits,
.hs-pipeline,
.hs-related { padding: 100px 0; }

/* ── Process Steps ──────────────────────────────── */
.hs-process { text-align: center; }
.hs-process .headline-section { margin-bottom: 12px; }
.hs-process .subhead { margin: 0 auto 56px; max-width: 500px; }

.hs-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.hs-step {
    text-align: center;
    padding: 0 16px;
}

.hs-step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(245, 124, 0, 0.08);
    color: #f57c00;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hs-step:hover .hs-step-num {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 124, 0, 0.15);
}

.hs-step .headline-card {
    margin-bottom: 10px;
    font-size: 20px;
}

.hs-step .body-text {
    font-size: 15px;
}

/* ── Service Pipeline — Unique Section ────────── */
.hs-pipeline {
    background: var(--bg-section);
    text-align: center;
}

.hs-pipeline .headline-section { margin-bottom: 12px; }
.hs-pipeline .subhead { margin: 0 auto 56px; max-width: 540px; }

.hs-pipeline-track {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.hs-pipeline-track::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 124, 0, 0.15), #f57c00, rgba(48, 209, 88, 0.3));
    z-index: 0;
}

.hs-pipeline-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.hs-pipeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.hs-pipeline-stage:hover .hs-pipeline-icon {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(245, 124, 0, 0.12);
}

.hs-pipeline-icon svg {
    width: 32px;
    height: 32px;
}

.hs-pipeline-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hs-pipeline-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    max-width: 160px;
}

/* Pipeline pulse animation on connector line */
.hs-pipeline-pulse {
    position: absolute;
    top: 37px;
    left: 10%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f57c00;
    z-index: 2;
    animation: hsPipelinePulse 3s ease-in-out infinite;
}

@keyframes hsPipelinePulse {
    0% { left: 10%; opacity: 1; }
    100% { left: 88%; opacity: 0.3; }
}

/* ── Benefits Bento Grid ── */
.hs-benefits { text-align: center; }
.hs-benefits .headline-section { margin-bottom: 12px; }
.hs-benefits .subhead { margin: 0 auto 56px; max-width: 520px; }

.hs-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.hs-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
.hs-bento-grid .bento-card:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.hs-bento-grid .bento-card:nth-child(6) { grid-column: 2 / 4; }

.hs-bento-grid .bento-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hs-bento-grid .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.hs-bento-grid .bento-card-graphic svg {
    transition: transform 0.4s ease;
}

.hs-bento-grid .bento-card:hover .bento-card-graphic svg {
    transform: scale(1.05);
}

/* Pulse animation for accent elements */
@keyframes hsIconPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hs-bento-grid .bento-card-graphic .pulse-ring {
    animation: hsIconPulse 3s ease-in-out infinite;
}

/* Floating animation for integration icons */
@keyframes hsIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hs-bento-grid .bento-app-icon:nth-child(1) { animation: hsIconFloat 3s ease-in-out infinite; }
.hs-bento-grid .bento-app-icon:nth-child(2) { animation: hsIconFloat 3s 0.3s ease-in-out infinite; }
.hs-bento-grid .bento-app-icon:nth-child(3) { animation: hsIconFloat 3s 0.6s ease-in-out infinite; }
.hs-bento-grid .bento-app-icon:nth-child(4) { animation: hsIconFloat 3s 0.9s ease-in-out infinite; }

/* Wrench spin animation */
@keyframes hsWrenchSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hs-wrench-spin {
    transform-origin: 80px 50px;
    animation: hsWrenchSpin 10s linear infinite;
}

/* ── Stats Banner Override ── */
.hs-stats {
    background: var(--bg-card);
}

/* ── Related Industries ── */
.hs-related { text-align: center; }
.hs-related .headline-section { margin-bottom: 12px; }
.hs-related .subhead { margin: 0 auto 48px; max-width: 480px; }

.hs-related .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hs-related .feature-card .ind-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #f57c00;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.hs-related .feature-card:hover .ind-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.hs-related .ind-icon-graphic {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hs-related .ind-icon-graphic-amber  { background: rgba(245, 124, 0, 0.04); }
.hs-related .ind-icon-graphic-green  { background: rgba(29, 185, 84, 0.04); }
.hs-related .ind-icon-graphic-blue   { background: rgba(0, 113, 227, 0.04); }

.hs-related .feature-card:hover .ind-icon-graphic {
    transform: translateY(-4px);
}

.hs-related .ind-icon-graphic svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hs-related .feature-card:hover .ind-icon-graphic svg {
    transform: scale(1.08);
}

/* ── Device Morph Dashboard Section ───────────── */
.hs-device-morph {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
}

.hs-device-morph-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hs-device-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 56vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.hs-device-frame .app-demo-titlebar {
    flex-shrink: 0;
}

.hs-device-frame .app-demo-body {
    flex: 1;
    height: auto;
}

.hs-device-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 110;
}

.hs-device-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 111;
    opacity: 0;
    transform: translateY(24px);
}

.hs-device-content .headline-section {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hs-device-content .subhead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
    .hs-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hs-hero-text .subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hs-hero-text .hero-actions {
        justify-content: center;
    }

    .hs-hero-trust {
        justify-content: center;
    }

    .hs-badge { display: none; }
    .hs-phone { width: 260px; }

    .hs-device-frame { width: 90%; }

    .hs-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .hs-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
    .hs-bento-grid .bento-card:nth-child(2) { grid-column: 1; grid-row: auto; }
    .hs-bento-grid .bento-card:nth-child(6) { grid-column: 1 / 3; }

    .hs-pipeline-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .hs-pipeline-track::before { display: none; }
    .hs-pipeline-pulse { display: none; }
}

@media (max-width: 768px) {
    .hs-hero { padding: 140px 0 60px; }

    .hs-process,
    .hs-benefits,
    .hs-pipeline,
    .hs-related { padding: 80px 0; }

    .hs-phone { width: 240px; border-radius: 36px; padding: 10px; }
    .hs-screen { border-radius: 28px; }
    .hs-chat { min-height: 240px; padding: 12px 10px; }
    .hs-msg { font-size: 12px; }

    .hs-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .hs-device-morph { height: 250vh; }
    .hs-device-frame {
        width: 94%;
        height: 40vh;
    }
    .hs-device-frame .app-demo-sidebar { display: none; }
    .hs-device-frame .app-demo-body { grid-template-columns: 1fr; }
    .hs-device-content { padding: 24px; }
    .hs-device-content .headline-section { font-size: 28px; }
    .hs-device-content .subhead { font-size: 16px; }

    .hs-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .hs-bento-grid .bento-card:nth-child(1),
    .hs-bento-grid .bento-card:nth-child(2),
    .hs-bento-grid .bento-card:nth-child(6) { grid-column: 1; grid-row: auto; }

    .hs-pipeline-track {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
